From d0a0af3550ddb5f08ab683bc54ab99f9e2b1a74c Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 22 Sep 2014 20:45:55 -0700 Subject: librpc: gensec is our security provider abstraction, remove a void * Andrew Bartlett Signed-off-by: Andrew Bartlett Reviewed-by: Stefan Metzmacher --- source3/rpc_server/srv_pipe.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'source3/rpc_server') 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, -- cgit