summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-05-22 12:56:32 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-05-22 12:56:32 +0000
commit31e074cea50111a150db220603c3cfccaaf4339c (patch)
treec1ff1e2f69f364ea27640fb3821151b187187955
parent9d8431b04f41dceffe4c45cc969472ee59f7282f (diff)
downloadsamba-31e074cea50111a150db220603c3cfccaaf4339c.tar.gz
samba-31e074cea50111a150db220603c3cfccaaf4339c.tar.xz
samba-31e074cea50111a150db220603c3cfccaaf4339c.zip
Nobody uses this function, and there really doesn't seem much point to
it, so we may as well reduce the complexity. Andrew Bartlett
-rw-r--r--source/auth/auth.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/source/auth/auth.c b/source/auth/auth.c
index 148826fa6e8..c40cef55191 100644
--- a/source/auth/auth.c
+++ b/source/auth/auth.c
@@ -422,26 +422,6 @@ NTSTATUS make_auth_context_subsystem(struct auth_context **auth_context)
}
/***************************************************************************
- 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
***************************************************************************/