diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-01-02 13:11:38 +1100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-01-11 09:04:52 +0100 |
commit | e8cd9721776d3ffc574dcf93c8eb668d4dce36d0 (patch) | |
tree | 699f7db609d26882e24ac67e16b142264e00667a /source3 | |
parent | e574489be46dc7697a9718657e6941b11c6578d1 (diff) | |
download | samba-e8cd9721776d3ffc574dcf93c8eb668d4dce36d0.tar.gz samba-e8cd9721776d3ffc574dcf93c8eb668d4dce36d0.tar.bz2 samba-e8cd9721776d3ffc574dcf93c8eb668d4dce36d0.zip |
s3-librpc: rename get_ntlmssp_auth_footer to be more generic
This can handle any gensec auth type now.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/librpc/rpc/dcerpc_helpers.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/librpc/rpc/dcerpc_helpers.c b/source3/librpc/rpc/dcerpc_helpers.c index 30c05a3626..026b1fa32f 100644 --- a/source3/librpc/rpc/dcerpc_helpers.c +++ b/source3/librpc/rpc/dcerpc_helpers.c @@ -382,7 +382,7 @@ NTSTATUS dcerpc_guess_sizes(struct pipe_auth_data *auth, Create and add the NTLMSSP sign/seal auth data. ********************************************************************/ -static NTSTATUS add_ntlmssp_auth_footer(struct gensec_security *gensec_security, +static NTSTATUS add_generic_auth_footer(struct gensec_security *gensec_security, enum dcerpc_AuthLevel auth_level, DATA_BLOB *rpc_out) { @@ -450,7 +450,7 @@ static NTSTATUS add_ntlmssp_auth_footer(struct gensec_security *gensec_security, Check/unseal the NTLMSSP auth data. (Unseal in place). ********************************************************************/ -static NTSTATUS get_ntlmssp_auth_footer(struct gensec_security *gensec_security, +static NTSTATUS get_generic_auth_footer(struct gensec_security *gensec_security, enum dcerpc_AuthLevel auth_level, DATA_BLOB *data, DATA_BLOB *full_pkt, DATA_BLOB *auth_token) @@ -809,7 +809,7 @@ NTSTATUS dcerpc_add_auth_footer(struct pipe_auth_data *auth, case DCERPC_AUTH_TYPE_NTLMSSP: gensec_security = talloc_get_type_abort(auth->auth_ctx, struct gensec_security); - status = add_ntlmssp_auth_footer(gensec_security, + status = add_generic_auth_footer(gensec_security, auth->auth_level, rpc_out); break; @@ -937,11 +937,11 @@ NTSTATUS dcerpc_check_auth(struct pipe_auth_data *auth, case DCERPC_AUTH_TYPE_NTLMSSP: - DEBUG(10, ("NTLMSSP auth\n")); + DEBUG(10, ("GENSEC auth\n")); gensec_security = talloc_get_type_abort(auth->auth_ctx, struct gensec_security); - status = get_ntlmssp_auth_footer(gensec_security, + status = get_generic_auth_footer(gensec_security, auth->auth_level, &data, &full_pkt, &auth_info.credentials); |