diff --git a/source4/rpc_server/dcesrv_auth.c b/source4/rpc_server/dcesrv_auth.c index 108d2683e53..d48d03eefdc 100644 --- a/source4/rpc_server/dcesrv_auth.c +++ b/source4/rpc_server/dcesrv_auth.c @@ -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 */