s4:rpc_server: remove unused dcesrv_auth_{bind_ack,auth3,alter_ack}()
authorStefan Metzmacher <metze@samba.org>
Mon, 15 May 2017 12:03:54 +0000 (14:03 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 21 May 2017 19:05:13 +0000 (21:05 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/rpc_server/dcesrv_auth.c

index 108d2683e53526a11bf52949337b5f41ce35d238..d48d03eefdcc78043b39830a7ffe2a072effdf0e 100644 (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
 */