s3-rpc_server Remove unused function auth_generic_server_start()
authorAndrew Bartlett <abartlet@samba.org>
Mon, 20 Feb 2012 05:42:20 +0000 (16:42 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 23 Feb 2012 05:14:18 +0000 (16:14 +1100)
source3/rpc_server/dcesrv_auth_generic.c
source3/rpc_server/dcesrv_auth_generic.h

index 5fe676627ab5a367bc7b99f95dcf2991f28ce581..c4c08b2dd394e0f2661b81d8880d3fee9535ca51 100644 (file)
 #include "auth.h"
 #include "auth/gensec/gensec.h"
 
-NTSTATUS auth_generic_server_start(TALLOC_CTX *mem_ctx,
-                                  const char *oid,
-                                  bool do_sign,
-                                  bool do_seal,
-                                  bool is_dcerpc,
-                                  DATA_BLOB *token_in,
-                                  DATA_BLOB *token_out,
-                                  const struct tsocket_address *remote_address,
-                                  struct gensec_security **ctx)
-{
-       struct gensec_security *gensec_security = NULL;
-       NTSTATUS status;
-
-       status = auth_generic_prepare(talloc_tos(), remote_address, &gensec_security);
-       if (!NT_STATUS_IS_OK(status)) {
-               DEBUG(0, (__location__ ": auth_generic_prepare failed: %s\n",
-                         nt_errstr(status)));
-               return status;
-       }
-
-       if (do_sign) {
-               gensec_want_feature(gensec_security, GENSEC_FEATURE_SIGN);
-       }
-       if (do_seal) {
-               gensec_want_feature(gensec_security, GENSEC_FEATURE_SIGN);
-               gensec_want_feature(gensec_security, GENSEC_FEATURE_SEAL);
-       }
-
-       if (is_dcerpc) {
-               gensec_want_feature(gensec_security, GENSEC_FEATURE_DCE_STYLE);
-       }
-
-       status = gensec_start_mech_by_oid(gensec_security, oid);
-       if (!NT_STATUS_IS_OK(status)) {
-               DEBUG(0, (__location__ ": auth_generic_start failed: %s\n",
-                         nt_errstr(status)));
-               TALLOC_FREE(gensec_security);
-               return status;
-       }
-
-       status = gensec_update(gensec_security, mem_ctx, NULL, *token_in, token_out);
-       if (!NT_STATUS_IS_OK(status) && !NT_STATUS_EQUAL(status, NT_STATUS_MORE_PROCESSING_REQUIRED)) {
-               DEBUG(2, (__location__ ": gensec_update failed: %s\n",
-                         nt_errstr(status)));
-               TALLOC_FREE(gensec_security);
-               return status;
-       }
-
-       /* steal gensec context to the caller */
-       *ctx = talloc_move(mem_ctx, &gensec_security);
-       return NT_STATUS_OK;
-}
-
 NTSTATUS auth_generic_server_authtype_start(TALLOC_CTX *mem_ctx,
                                            uint8_t auth_type, uint8_t auth_level,
                                            DATA_BLOB *token_in,
index 07e69af1f77f6f82b467d31d6b10cd276e118555..f288c94621fc8e5b20be8da2f3b2b576b9178780 100644 (file)
 
 struct gensec_security;
 
-NTSTATUS auth_generic_server_start(TALLOC_CTX *mem_ctx,
-                                  const char *oid,
-                                  bool do_sign,
-                                  bool do_seal,
-                                  bool is_dcerpc,
-                                  DATA_BLOB *token_in,
-                                  DATA_BLOB *token_out,
-                                  const struct tsocket_address *remote_address,
-                                  struct gensec_security **ctx);
-
 NTSTATUS auth_generic_server_authtype_start(TALLOC_CTX *mem_ctx,
                                            uint8_t auth_type, uint8_t auth_level,
                                            DATA_BLOB *token_in,