summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-08-02 13:33:37 +0200
committerStefan Metzmacher <metze@samba.org>2013-08-10 09:18:58 +0200
commita964309bf7631f4f6953e0d6556f8ed8e5300dcc (patch)
treea46c7167fb96910d86031178b9c991cf21e969db /source3/rpc_server
parentaf4dc306846a30a5a1201306cc2cbf4d494e16e7 (diff)
downloadsamba-a964309bf7631f4f6953e0d6556f8ed8e5300dcc.tar.gz
samba-a964309bf7631f4f6953e0d6556f8ed8e5300dcc.tar.bz2
samba-a964309bf7631f4f6953e0d6556f8ed8e5300dcc.zip
s3:rpc_server: make use of netsec_create_state()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_pipe.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/source3/rpc_server/srv_pipe.c b/source3/rpc_server/srv_pipe.c
index 894f12c2e9..49a27b9b0b 100644
--- a/source3/rpc_server/srv_pipe.c
+++ b/source3/rpc_server/srv_pipe.c
@@ -462,8 +462,8 @@ static bool pipe_schannel_auth_bind(struct pipes_struct *p,
*/
become_root();
- status = schannel_get_creds_state(p, lp_ctx,
- neg.oem_netbios_computer.a, &creds);
+ status = schannel_get_creds_state(p->mem_ctx, lp_ctx,
+ neg.oem_netbios_computer.a, &creds);
unbecome_root();
talloc_unlink(p, lp_ctx);
@@ -472,16 +472,12 @@ static bool pipe_schannel_auth_bind(struct pipes_struct *p,
return False;
}
- schannel_auth = talloc_zero(p, struct schannel_state);
+ schannel_auth = netsec_create_state(p, creds, false /* not initiator */);
+ TALLOC_FREE(creds);
if (!schannel_auth) {
- TALLOC_FREE(creds);
return False;
}
- schannel_auth->state = SCHANNEL_STATE_START;
- schannel_auth->initiator = false;
- schannel_auth->creds = creds;
-
/*
* JRA. Should we also copy the schannel session key into the pipe session key p->session_key
* here ? We do that for NTLMSSP, but the session key is already set up from the vuser