auth3: merge make_auth_context_subsystem() into make_auth3_context_for_ntlm()
authorStefan Metzmacher <metze@samba.org>
Fri, 17 Mar 2017 15:53:27 +0000 (16:53 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 9 Apr 2017 23:11:20 +0000 (01:11 +0200)
make_auth3_context_for_ntlm() was the only caller of
make_auth_context_subsystem().

BUG: https://bugzilla.samba.org/show_bug.cgi?id=2976
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12710

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/auth/auth.c

index 916c524cb689dbc4c84325c4f927faaceac2e92c..2c92140194d484401b9347a280af9812d8725fde 100644 (file)
@@ -500,8 +500,8 @@ static NTSTATUS make_auth_context_specific(TALLOC_CTX *mem_ctx,
  Make a auth_context struct for the auth subsystem
 ***************************************************************************/
 
-static NTSTATUS make_auth_context_subsystem(TALLOC_CTX *mem_ctx,
-                                           struct auth_context **auth_context)
+NTSTATUS make_auth3_context_for_ntlm(TALLOC_CTX *mem_ctx,
+                                    struct auth_context **auth_context)
 {
        const char *methods = NULL;
        NTSTATUS nt_status;
@@ -550,12 +550,6 @@ static NTSTATUS make_auth_context_subsystem(TALLOC_CTX *mem_ctx,
        return make_auth_context_specific(mem_ctx, auth_context, methods);
 }
 
-NTSTATUS make_auth3_context_for_ntlm(TALLOC_CTX *mem_ctx,
-                                    struct auth_context **auth_context)
-{
-       return make_auth_context_subsystem(mem_ctx, auth_context);
-}
-
 NTSTATUS make_auth3_context_for_netlogon(TALLOC_CTX *mem_ctx,
                                         struct auth_context **auth_context)
 {