summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-01-03 22:00:11 +1100
committerStefan Metzmacher <metze@samba.org>2012-01-18 16:23:23 +0100
commitf2efb0f6a3536d9aa84932f6997de39f0adf5b90 (patch)
tree3df73172983d26c52447ca8a3774f282cb48d358 /source3/rpc_client
parent1818612830576419889ff5702d5e85fa63ddb121 (diff)
downloadsamba-f2efb0f6a3536d9aa84932f6997de39f0adf5b90.tar.gz
samba-f2efb0f6a3536d9aa84932f6997de39f0adf5b90.tar.bz2
samba-f2efb0f6a3536d9aa84932f6997de39f0adf5b90.zip
s3-librpc Remove special case for spnego session key
SPNEGO is implemented only in terms of gensec mechanisms now. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/cli_pipe.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index f3a334a052..9091d879b8 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -3113,7 +3113,14 @@ NTSTATUS cli_get_session_key(TALLOC_CTX *mem_ctx,
case DCERPC_AUTH_TYPE_SPNEGO:
spnego_ctx = talloc_get_type_abort(a->auth_ctx,
struct spnego_context);
- sk = spnego_get_session_key(mem_ctx, spnego_ctx);
+ status = spnego_get_negotiated_mech(spnego_ctx, &gensec_security);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+ status = gensec_session_key(gensec_security, mem_ctx, &sk);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
make_dup = false;
break;
case DCERPC_AUTH_TYPE_NTLMSSP: