diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-10-17 09:22:33 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-10-18 13:13:33 +1100 |
commit | e7d5f0a357c42593a015b80390dedf920117a7e2 (patch) | |
tree | a4fa1a53f0294607b4abeb6f389ce719502fe849 /source4/librpc/rpc | |
parent | 0f2b27e7d428e75b8e6079ee5f36a0cccd4d1785 (diff) | |
download | samba-e7d5f0a357c42593a015b80390dedf920117a7e2.tar.gz samba-e7d5f0a357c42593a015b80390dedf920117a7e2.tar.bz2 samba-e7d5f0a357c42593a015b80390dedf920117a7e2.zip |
gensec: move event context from gensec_*_init() to gensec_update()
This avoids keeping the event context around on a the gensec_security
context structure long term.
In the Samba3 server, the event context we either supply is a NULL
pointer as no server-side modules currently use the event context.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/librpc/rpc')
-rw-r--r-- | source4/librpc/rpc/dcerpc_auth.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/librpc/rpc/dcerpc_auth.c b/source4/librpc/rpc/dcerpc_auth.c index fb2f4fb680..b3f4f2fdb0 100644 --- a/source4/librpc/rpc/dcerpc_auth.c +++ b/source4/librpc/rpc/dcerpc_auth.c @@ -132,6 +132,7 @@ static void bind_auth_next_step(struct composite_context *c) */ c->status = gensec_update(sec->generic_state, state, + state->pipe->conn->event_ctx, sec->auth_info->credentials, &state->credentials); data_blob_free(&sec->auth_info->credentials); @@ -255,7 +256,6 @@ struct composite_context *dcerpc_bind_auth_send(TALLOC_CTX *mem_ctx, sec = &p->conn->security_state; c->status = gensec_client_start(p, &sec->generic_state, - p->conn->event_ctx, gensec_settings); if (!NT_STATUS_IS_OK(c->status)) { DEBUG(1, ("Failed to start GENSEC client mode: %s\n", @@ -334,6 +334,7 @@ struct composite_context *dcerpc_bind_auth_send(TALLOC_CTX *mem_ctx, */ c->status = gensec_update(sec->generic_state, state, + p->conn->event_ctx, sec->auth_info->credentials, &state->credentials); if (!NT_STATUS_IS_OK(c->status) && |