summaryrefslogtreecommitdiffstats
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2014-09-22 20:45:55 -0700
committerAndrew Bartlett <abartlet@samba.org>2014-09-27 01:35:36 +0200
commitd0a0af3550ddb5f08ab683bc54ab99f9e2b1a74c (patch)
treefdc8cc5707de9a33210e5d6d1fe9229ce3050535 /source3/rpc_client
parentf8643b9f5fcb4854e2e6ba17941df24862f0504b (diff)
downloadsamba-d0a0af3550ddb5f08ab683bc54ab99f9e2b1a74c.tar.gz
samba-d0a0af3550ddb5f08ab683bc54ab99f9e2b1a74c.tar.xz
samba-d0a0af3550ddb5f08ab683bc54ab99f9e2b1a74c.zip
librpc: gensec is our security provider abstraction, remove a void *
Andrew Bartlett Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/cli_pipe.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index d3a075f28d..dc07495bfe 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -1007,8 +1007,7 @@ static NTSTATUS create_generic_auth_rpc_bind_req(struct rpc_pipe_client *cli,
DATA_BLOB null_blob = data_blob_null;
NTSTATUS status;
- gensec_security = talloc_get_type_abort(cli->auth->auth_ctx,
- struct gensec_security);
+ gensec_security = cli->auth->auth_ctx;
DEBUG(5, ("create_generic_auth_rpc_bind_req: generate first token\n"));
status = gensec_update(gensec_security, mem_ctx, null_blob, auth_token);
@@ -1860,8 +1859,7 @@ static void rpc_pipe_bind_step_one_done(struct tevent_req *subreq)
return;
default:
- gensec_security = talloc_get_type_abort(pauth->auth_ctx,
- struct gensec_security);
+ gensec_security = pauth->auth_ctx;
if (pkt->pfc_flags & DCERPC_PFC_FLAG_SUPPORT_HEADER_SIGN) {
if (pauth->client_hdr_signing) {
@@ -3185,8 +3183,7 @@ NTSTATUS cli_get_session_key(TALLOC_CTX *mem_ctx,
make_dup = true;
break;
default:
- gensec_security = talloc_get_type(a->auth_ctx,
- struct gensec_security);
+ gensec_security = a->auth_ctx;
status = gensec_session_key(gensec_security, mem_ctx, &sk);
if (!NT_STATUS_IS_OK(status)) {
return status;