summaryrefslogtreecommitdiff
path: root/source3/librpc/rpc
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-01-02 15:48:09 +1100
committerStefan Metzmacher <metze@samba.org>2012-01-18 16:23:22 +0100
commit5ddec1182ec378e4560f0d98604060fdc4b6f542 (patch)
tree1eaf362d0c128a7f63051e0710ed12294feb5167 /source3/librpc/rpc
parent0c1b4c232135ebdef58bb5e697dfc60ddbb358bc (diff)
downloadsamba-5ddec1182ec378e4560f0d98604060fdc4b6f542.tar.gz
samba-5ddec1182ec378e4560f0d98604060fdc4b6f542.tar.bz2
samba-5ddec1182ec378e4560f0d98604060fdc4b6f542.zip
s3-librpc: Simplify SPNEGO code now that all mechs use a struct gensec_security
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/librpc/rpc')
-rw-r--r--source3/librpc/rpc/dcerpc_helpers.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/librpc/rpc/dcerpc_helpers.c b/source3/librpc/rpc/dcerpc_helpers.c
index ed0e0fe932..5a50f2b24a 100644
--- a/source3/librpc/rpc/dcerpc_helpers.c
+++ b/source3/librpc/rpc/dcerpc_helpers.c
@@ -268,7 +268,6 @@ NTSTATUS dcerpc_guess_sizes(struct pipe_auth_data *auth,
struct gensec_security *gensec_security;
struct schannel_state *schannel_auth;
struct spnego_context *spnego_ctx;
- enum spnego_mech auth_type;
NTSTATUS status;
/* no auth token cases first */
@@ -303,8 +302,7 @@ NTSTATUS dcerpc_guess_sizes(struct pipe_auth_data *auth,
case DCERPC_AUTH_TYPE_SPNEGO:
spnego_ctx = talloc_get_type_abort(auth->auth_ctx,
struct spnego_context);
- status = spnego_get_negotiated_mech(spnego_ctx,
- &auth_type, &gensec_security);
+ status = spnego_get_negotiated_mech(spnego_ctx, &gensec_security);
if (!NT_STATUS_IS_OK(status)) {
return status;
}