Nobody uses this function, and there really doesn't seem much point to
authorAndrew Bartlett <abartlet@samba.org>
Wed, 22 May 2002 12:56:32 +0000 (12:56 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 22 May 2002 12:56:32 +0000 (12:56 +0000)
it, so we may as well reduce the complexity.

Andrew Bartlett
(This used to be commit 31e074cea50111a150db220603c3cfccaaf4339c)

source3/auth/auth.c

index 148826fa6e8631311f42ee84795dc3590bae9161..c40cef551911e9b12822bfb8d3e0277a96e7fc63 100644 (file)
@@ -421,26 +421,6 @@ NTSTATUS make_auth_context_subsystem(struct auth_context **auth_context)
        return nt_status;
 }
 
-/***************************************************************************
- Make a auth_info struct with a random challenge
-***************************************************************************/
-
-NTSTATUS make_auth_context_random(struct auth_context **auth_context) 
-{
-       uchar chal[8];
-       NTSTATUS nt_status;
-       if (!NT_STATUS_IS_OK(nt_status = make_auth_context_subsystem(auth_context))) {
-               return nt_status;
-       }
-       
-       generate_random_buffer(chal, sizeof(chal), False);
-       (*auth_context)->challenge = data_blob(chal, sizeof(chal));
-
-       (*auth_context)->challenge_set_by = "random";
-
-       return nt_status;
-}
-
 /***************************************************************************
  Make a auth_info struct with a fixed challenge
 ***************************************************************************/