From e96142fc439efb7c90719f9c387778c4218ae637 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 2 Aug 2013 13:28:11 +0200 Subject: s3:cli_pipe: make use of netsec_create_state() Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- source3/rpc_client/cli_pipe.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'source3/rpc_client') 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; -- cgit