summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-12-14 19:43:59 +1100
committerAndrew Bartlett <abartlet@samba.org>2010-05-13 10:12:26 +1000
commit468fb4fee49aa0cd1919fcd3803d2490e2ac568d (patch)
tree06393dc661170c07be8d583b5a7a31d5e3c66b06 /source3/auth
parent1101c6214415675fbd32377d539276ca19c4407f (diff)
downloadsamba-468fb4fee49aa0cd1919fcd3803d2490e2ac568d.tar.gz
samba-468fb4fee49aa0cd1919fcd3803d2490e2ac568d.tar.bz2
samba-468fb4fee49aa0cd1919fcd3803d2490e2ac568d.zip
s3:auth Make get_ntlm_challenge more like Samba4
This helps with the upcoming NTLMSSP merge, and allows errors to be returned. Andrew Bartlett
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/auth.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/auth/auth.c b/source3/auth/auth.c
index 317fe307d4..b4995ce19b 100644
--- a/source3/auth/auth.c
+++ b/source3/auth/auth.c
@@ -76,7 +76,7 @@ static struct auth_init_function_entry *auth_find_backend_entry(const char *name
Returns a const char of length 8 bytes.
****************************************************************************/
-static void get_ntlm_challenge(struct auth_context *auth_context,
+static NTSTATUS get_ntlm_challenge(struct auth_context *auth_context,
uint8_t chal[8])
{
DATA_BLOB challenge = data_blob_null;
@@ -87,7 +87,7 @@ static void get_ntlm_challenge(struct auth_context *auth_context,
DEBUG(5, ("get_ntlm_challenge (auth subsystem): returning previous challenge by module %s (normal)\n",
auth_context->challenge_set_by));
memcpy(chal, auth_context->challenge.data, 8);
- return;
+ return NT_STATUS_OK;
}
auth_context->challenge_may_be_modified = False;
@@ -138,6 +138,7 @@ static void get_ntlm_challenge(struct auth_context *auth_context,
auth_context->challenge_set_by=challenge_set_by;
memcpy(chal, auth_context->challenge.data, 8);
+ return NT_STATUS_OK;
}