From 1100f6eca568bdf725922eff09988559d2714e45 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 16 Dec 2011 16:08:56 +1100 Subject: s3-auth rename auth_ntlmssp_prepare() -> auth_generic_prepare() This function handles more than NTLMSSP now, at least when we are an AD DC and so changing the name may avoid some confusion in the future. Andrew Bartlett Signed-off-by: Stefan Metzmacher --- source3/auth/auth_ntlmssp.c | 4 ++-- source3/auth/proto.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/auth') diff --git a/source3/auth/auth_ntlmssp.c b/source3/auth/auth_ntlmssp.c index 082f10cf8c..0f09ae1021 100644 --- a/source3/auth/auth_ntlmssp.c +++ b/source3/auth/auth_ntlmssp.c @@ -210,7 +210,7 @@ static NTSTATUS auth_ntlmssp_check_password(struct ntlmssp_state *ntlmssp_state, return nt_status; } -NTSTATUS auth_ntlmssp_prepare(const struct tsocket_address *remote_address, +NTSTATUS auth_generic_prepare(const struct tsocket_address *remote_address, struct auth_generic_state **auth_ntlmssp_state) { struct auth_context *auth_context; @@ -414,7 +414,7 @@ NTSTATUS auth_generic_authtype_start(struct auth_generic_state *auth_ntlmssp_sta if (auth_type != DCERPC_AUTH_TYPE_NTLMSSP) { /* The caller will then free the auth_ntlmssp_state, - * undoing what was done in auth_ntlmssp_prepare(). + * undoing what was done in auth_generic_prepare(). * * We can't do that logic here, as * auth_ntlmssp_want_feature() may have been called in diff --git a/source3/auth/proto.h b/source3/auth/proto.h index b608c48e6e..125ac14ea4 100644 --- a/source3/auth/proto.h +++ b/source3/auth/proto.h @@ -69,7 +69,7 @@ NTSTATUS auth_netlogond_init(void); /* The following definitions come from auth/auth_ntlmssp.c */ -NTSTATUS auth_ntlmssp_prepare(const struct tsocket_address *remote_address, +NTSTATUS auth_generic_prepare(const struct tsocket_address *remote_address, struct auth_generic_state **auth_ntlmssp_state); NTSTATUS auth_ntlmssp_start(struct auth_generic_state *auth_ntlmssp_state); NTSTATUS auth_generic_start(struct auth_generic_state *auth_ntlmssp_state, const char *oid); -- cgit