auth3: Remove unused make_auth_context_fixed
authorVolker Lendecke <vl@samba.org>
Mon, 13 Mar 2017 07:22:27 +0000 (08:22 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 24 Mar 2017 10:57:09 +0000 (11:57 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=2976

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

index e40c4a63d405174d4e36af87e1e3616ca8448455..7769c23c9c05d2e1f57514f8c53cb8dac460ad0f 100644 (file)
@@ -528,25 +528,6 @@ NTSTATUS make_auth_context_subsystem(TALLOC_CTX *mem_ctx,
        return make_auth_context_specific(mem_ctx, auth_context, methods);
 }
 
-/***************************************************************************
- Make a auth_info struct with a fixed challenge
-***************************************************************************/
-
-NTSTATUS make_auth_context_fixed(TALLOC_CTX *mem_ctx,
-                                struct auth_context **auth_context,
-                                uchar chal[8])
-{
-       NTSTATUS nt_status;
-       nt_status = make_auth_context_subsystem(mem_ctx, auth_context);
-       if (!NT_STATUS_IS_OK(nt_status)) {
-               return nt_status;
-       }
-
-       (*auth_context)->challenge = data_blob_talloc(*auth_context, chal, 8);
-       (*auth_context)->challenge_set_by = "fixed";
-       return nt_status;
-}
-
 bool auth3_context_set_challenge(struct auth_context *ctx, uint8_t chal[8],
                                 const char *challenge_set_by)
 {
index 83ea2a57f4d8a52ab3227bbb1ed3904b011b6061..5ffe757f1312c41b4b26713da26939d870f0e01c 100644 (file)
@@ -40,9 +40,6 @@ bool load_auth_module(struct auth_context *auth_context,
                      const char *module, auth_methods **ret) ;
 NTSTATUS make_auth_context_subsystem(TALLOC_CTX *mem_ctx,
                                     struct auth_context **auth_context);
-NTSTATUS make_auth_context_fixed(TALLOC_CTX *mem_ctx,
-                                struct auth_context **auth_context,
-                                uchar chal[8]) ;
 bool auth3_context_set_challenge(struct auth_context *ctx, uint8_t chal[8],
                                 const char *challenge_set_by);