diff options
author | Andrew Bartlett <abartlet@samba.org> | 2005-10-07 02:07:25 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:39:30 -0500 |
commit | 05c5d145e7cd4d9ca95159428f5732bf7880ecaf (patch) | |
tree | da4a66598da97232959c681944ea5fafea3e871c /source4/auth/gensec | |
parent | 5e0fd505abd1926558e59ae77bcfd03cd0beecfa (diff) | |
download | samba-05c5d145e7cd4d9ca95159428f5732bf7880ecaf.tar.gz samba-05c5d145e7cd4d9ca95159428f5732bf7880ecaf.tar.bz2 samba-05c5d145e7cd4d9ca95159428f5732bf7880ecaf.zip |
r10796: Make getting an anonymous session info a utility function.
Andrew Bartlett
(This used to be commit 6021fa373405f8788dc216aae82a3f4a80df4ba7)
Diffstat (limited to 'source4/auth/gensec')
-rw-r--r-- | source4/auth/gensec/schannel.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/source4/auth/gensec/schannel.c b/source4/auth/gensec/schannel.c index 8d5c7554f5..dd0bc1eddd 100644 --- a/source4/auth/gensec/schannel.c +++ b/source4/auth/gensec/schannel.c @@ -167,28 +167,8 @@ NTSTATUS dcerpc_schannel_creds(struct gensec_security *gensec_security, static NTSTATUS schannel_session_info(struct gensec_security *gensec_security, struct auth_session_info **_session_info) { - NTSTATUS nt_status; struct schannel_state *state = gensec_security->private_data; - struct auth_serversupplied_info *server_info = NULL; - struct auth_session_info *session_info = NULL; - TALLOC_CTX *mem_ctx = talloc_new(state); - - nt_status = auth_anonymous_server_info(mem_ctx, - &server_info); - if (!NT_STATUS_IS_OK(nt_status)) { - talloc_free(mem_ctx); - return nt_status; - } - - /* references the server_info into the session_info */ - nt_status = auth_generate_session_info(state, server_info, &session_info); - talloc_free(mem_ctx); - - NT_STATUS_NOT_OK_RETURN(nt_status); - - *_session_info = session_info; - - return NT_STATUS_OK; + return auth_anonymous_session_info(state, _session_info); } static NTSTATUS schannel_start(struct gensec_security *gensec_security) |