1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s4:rpc_server: remove unused dcesrv_auth_{bind_ack,auth3,alter_ack}()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Stefan Metzmacher 2017-05-15 14:03:54 +02:00 committed by Andrew Bartlett
parent b680e9e0ea
commit c449313df7

View File

@ -337,29 +337,6 @@ NTSTATUS dcesrv_auth_prepare_bind_ack(struct dcesrv_call_state *call, struct nca
return NT_STATUS_OK;
}
NTSTATUS dcesrv_auth_bind_ack(struct dcesrv_call_state *call, struct ncacn_packet *pkt)
{
struct dcesrv_connection *dce_conn = call->conn;
NTSTATUS status;
status = dcesrv_auth_prepare_bind_ack(call, pkt);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
if (dce_conn->auth_state.auth_finished) {
return NT_STATUS_OK;
}
status = gensec_update_ev(dce_conn->auth_state.gensec_security,
call, call->event_ctx,
call->in_auth_info.credentials,
&call->out_auth_info->credentials);
return dcesrv_auth_complete(call, status);
}
/*
process the final stage of a auth request
*/
@ -415,31 +392,6 @@ bool dcesrv_auth_prepare_auth3(struct dcesrv_call_state *call)
return true;
}
bool dcesrv_auth_auth3(struct dcesrv_call_state *call)
{
struct dcesrv_connection *dce_conn = call->conn;
NTSTATUS status;
bool ok;
ok = dcesrv_auth_prepare_auth3(call);
if (!ok) {
return false;
}
/* Pass the extra data we got from the client down to gensec for processing */
status = gensec_update_ev(dce_conn->auth_state.gensec_security,
call, call->event_ctx,
call->in_auth_info.credentials,
&call->out_auth_info->credentials);
status = dcesrv_auth_complete(call, status);
if (!NT_STATUS_IS_OK(status)) {
return false;
}
return true;
}
/*
parse any auth information from a dcerpc alter request
return false if we can't handle the auth request for some
@ -524,28 +476,6 @@ NTSTATUS dcesrv_auth_prepare_alter_ack(struct dcesrv_call_state *call, struct nc
return NT_STATUS_OK;
}
NTSTATUS dcesrv_auth_alter_ack(struct dcesrv_call_state *call, struct ncacn_packet *pkt)
{
struct dcesrv_connection *dce_conn = call->conn;
NTSTATUS status;
status = dcesrv_auth_prepare_alter_ack(call, pkt);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
if (dce_conn->auth_state.auth_finished) {
return NT_STATUS_OK;
}
status = gensec_update_ev(dce_conn->auth_state.gensec_security,
call, call->event_ctx,
call->in_auth_info.credentials,
&call->out_auth_info->credentials);
return dcesrv_auth_complete(call, status);
}
/*
check credentials on a packet
*/