summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-02-20 16:42:20 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-02-23 16:14:18 +1100
commit757c9b79ea1b2a599d9db1f6e686534777abd3a7 (patch)
tree56ee1a8ed93fd0311abf35be7a697ae349aeb3eb /source3/rpc_server
parentfe24ab4e53cde22e6b72d6073592cd3e31dc97f0 (diff)
downloadsamba-757c9b79ea1b2a599d9db1f6e686534777abd3a7.tar.gz
samba-757c9b79ea1b2a599d9db1f6e686534777abd3a7.tar.bz2
samba-757c9b79ea1b2a599d9db1f6e686534777abd3a7.zip
s3-rpc_server Remove unused function auth_generic_server_start()
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/dcesrv_auth_generic.c53
-rw-r--r--source3/rpc_server/dcesrv_auth_generic.h10
2 files changed, 0 insertions, 63 deletions
diff --git a/source3/rpc_server/dcesrv_auth_generic.c b/source3/rpc_server/dcesrv_auth_generic.c
index 5fe676627a..c4c08b2dd3 100644
--- a/source3/rpc_server/dcesrv_auth_generic.c
+++ b/source3/rpc_server/dcesrv_auth_generic.c
@@ -24,59 +24,6 @@
#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,
diff --git a/source3/rpc_server/dcesrv_auth_generic.h b/source3/rpc_server/dcesrv_auth_generic.h
index 07e69af1f7..f288c94621 100644
--- a/source3/rpc_server/dcesrv_auth_generic.h
+++ b/source3/rpc_server/dcesrv_auth_generic.h
@@ -22,16 +22,6 @@
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,