summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-08-02 13:28:11 +0200
committerStefan Metzmacher <metze@samba.org>2013-08-10 09:18:57 +0200
commite96142fc439efb7c90719f9c387778c4218ae637 (patch)
tree97989255f85cdefd8698776408f62096a3fd1516 /source3
parent33215398f32c76f4b8ada7b547c6d0741cb2ac16 (diff)
downloadsamba-e96142fc439efb7c90719f9c387778c4218ae637.tar.gz
samba-e96142fc439efb7c90719f9c387778c4218ae637.tar.bz2
samba-e96142fc439efb7c90719f9c387778c4218ae637.zip
s3:cli_pipe: 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')
-rw-r--r--source3/rpc_client/cli_pipe.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index 25c7a44cea..4d8a9d3b03 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -2243,18 +2243,11 @@ static NTSTATUS rpccli_schannel_bind_data(TALLOC_CTX *mem_ctx,
goto fail;
}
- schannel_auth = talloc_zero(result, struct schannel_state);
+ schannel_auth = netsec_create_state(result, creds, true /* initiator */);
if (schannel_auth == NULL) {
goto fail;
}
- schannel_auth->state = SCHANNEL_STATE_START;
- schannel_auth->initiator = true;
- schannel_auth->creds = netlogon_creds_copy(schannel_auth, creds);
- if (schannel_auth->creds == NULL) {
- goto fail;
- }
-
result->auth_ctx = schannel_auth;
*presult = result;
return NT_STATUS_OK;