summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-10-18 21:55:24 +1100
committerStefan Metzmacher <metze@samba.org>2011-10-21 08:43:38 +0200
commit0a0839821adb8a4e959e10128e9c103f82e0ff80 (patch)
tree89e62a0d47b74330cf735e61d9ca83b41a69f1a0 /source3/rpc_client
parent3f079885b21f22ec4f27cccaa6f59ebce0e56067 (diff)
downloadsamba-0a0839821adb8a4e959e10128e9c103f82e0ff80.tar.gz
samba-0a0839821adb8a4e959e10128e9c103f82e0ff80.tar.bz2
samba-0a0839821adb8a4e959e10128e9c103f82e0ff80.zip
s3-ntlmssp Remove auth_ntlmssp_session_key()
We now just call the gensec_session_key() directly. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/cli_pipe.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index 9a2aa409a0..694a74cad1 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -3201,6 +3201,7 @@ NTSTATUS cli_get_session_key(TALLOC_CTX *mem_ctx,
struct rpc_pipe_client *cli,
DATA_BLOB *session_key)
{
+ NTSTATUS status;
struct pipe_auth_data *a;
struct schannel_state *schannel_auth;
struct auth_ntlmssp_state *ntlmssp_ctx;
@@ -3235,7 +3236,10 @@ NTSTATUS cli_get_session_key(TALLOC_CTX *mem_ctx,
case DCERPC_AUTH_TYPE_NTLMSSP:
ntlmssp_ctx = talloc_get_type_abort(a->auth_ctx,
struct auth_ntlmssp_state);
- sk = auth_ntlmssp_get_session_key(ntlmssp_ctx, mem_ctx);
+ status = gensec_session_key(ntlmssp_ctx->gensec_security, mem_ctx, &sk);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
make_dup = false;
break;
case DCERPC_AUTH_TYPE_KRB5: