s4:librpc/rpc: remove unused dcerpc_bind_auth()
authorStefan Metzmacher <metze@samba.org>
Fri, 17 Jan 2014 13:13:05 +0000 (14:13 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 4 Jun 2019 10:43:20 +0000 (12:43 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source4/librpc/rpc/dcerpc.h
source4/librpc/rpc/dcerpc_auth.c

index b5ef1fd3be429ebb4deb05b1164f96d31a30e68d..398cb03da147324d7f346ace7584fdc0e4d239e1 100644 (file)
@@ -222,12 +222,6 @@ NTSTATUS dcerpc_alter_context(struct dcerpc_pipe *p,
                              const struct ndr_syntax_id *syntax,
                              const struct ndr_syntax_id *transfer_syntax);
 
-NTSTATUS dcerpc_bind_auth(struct dcerpc_pipe *p,
-                         const struct ndr_interface_table *table,
-                         struct cli_credentials *credentials,
-                         struct gensec_settings *gensec_settings,
-                         uint8_t auth_type, uint8_t auth_level,
-                         const char *service);
 struct composite_context* dcerpc_pipe_connect_send(TALLOC_CTX *parent_ctx,
                                                   const char *binding,
                                                   const struct ndr_interface_table *table,
index ea222c2706f7adecd7d97893f2ba0223788dc30b..44f3e4a9116cc95505cd92ad41bf1690066fa9f8 100644 (file)
@@ -529,28 +529,3 @@ NTSTATUS dcerpc_bind_auth_recv(struct composite_context *creq)
        talloc_free(creq);
        return result;
 }
-
-
-/**
-   Perform a GENSEC authenticated bind to a DCE/RPC pipe, sync
-   @param p The dcerpc_pipe to bind (must already be connected)
-   @param table The interface table to use (the DCE/RPC bind both selects and interface and authenticates)
-   @param credentials The credentials of the account to connect with 
-   @param auth_type Select the authentication scheme to use
-   @param auth_level Chooses between unprotected (connect), signed or sealed
-   @param service The service (used by Kerberos to select the service principal to contact)
-   @retval NTSTATUS status code
-*/
-
-_PUBLIC_ NTSTATUS dcerpc_bind_auth(struct dcerpc_pipe *p,
-                         const struct ndr_interface_table *table,
-                         struct cli_credentials *credentials,
-                         struct gensec_settings *gensec_settings,
-                         uint8_t auth_type, uint8_t auth_level,
-                         const char *service)
-{
-       struct composite_context *creq;
-       creq = dcerpc_bind_auth_send(p, p, table, credentials, gensec_settings,
-                                    auth_type, auth_level, service);
-       return dcerpc_bind_auth_recv(creq);
-}