diff options
author | Andrew Bartlett <abartlet@samba.org> | 2014-09-22 20:45:55 -0700 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2014-09-27 01:35:36 +0200 |
commit | d0a0af3550ddb5f08ab683bc54ab99f9e2b1a74c (patch) | |
tree | fdc8cc5707de9a33210e5d6d1fe9229ce3050535 /source3/rpc_server | |
parent | f8643b9f5fcb4854e2e6ba17941df24862f0504b (diff) | |
download | samba-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_server')
-rw-r--r-- | source3/rpc_server/srv_pipe.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/source3/rpc_server/srv_pipe.c b/source3/rpc_server/srv_pipe.c index 948abf3142..fecbae2362 100644 --- a/source3/rpc_server/srv_pipe.c +++ b/source3/rpc_server/srv_pipe.c @@ -553,11 +553,7 @@ static NTSTATUS pipe_auth_verify_final(struct pipes_struct *p) return NT_STATUS_OK; } - gensec_security = talloc_get_type(p->auth.auth_ctx, - struct gensec_security); - if (gensec_security == NULL) { - return NT_STATUS_INTERNAL_ERROR; - } + gensec_security = p->auth.auth_ctx; ok = pipe_auth_generic_verify_final(p, gensec_security, p->auth.auth_level, @@ -898,8 +894,7 @@ bool api_pipe_bind_auth3(struct pipes_struct *p, struct ncacn_packet *pkt) goto err; } - gensec_security = talloc_get_type(p->auth.auth_ctx, - struct gensec_security); + gensec_security = p->auth.auth_ctx; status = auth_generic_server_step(gensec_security, pkt, &auth_info.credentials, @@ -1025,8 +1020,7 @@ static bool api_pipe_alter_context(struct pipes_struct *p, goto err_exit; } - gensec_security = talloc_get_type(p->auth.auth_ctx, - struct gensec_security); + gensec_security = p->auth.auth_ctx; status = auth_generic_server_step(gensec_security, pkt, &auth_info.credentials, |