From b7b464eeee96a57fb94c1f0899bfdb6639a70eb6 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Tue, 6 Apr 2010 14:26:20 +0200 Subject: s4:auth/ntlm/auth_developer.c - "fixed_challenge_get_challenge" - fix the assignment of the challenge This is a string buffer and not a DATA_BLOB. --- source4/auth/ntlm/auth_developer.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'source4/auth/ntlm/auth_developer.c') diff --git a/source4/auth/ntlm/auth_developer.c b/source4/auth/ntlm/auth_developer.c index c9048310c3..96491d62c9 100644 --- a/source4/auth/ntlm/auth_developer.c +++ b/source4/auth/ntlm/auth_developer.c @@ -150,15 +150,12 @@ static const struct auth_operations name_to_ntstatus_auth_ops = { * * @return NT_STATUS_UNSUCCESSFUL **/ -static NTSTATUS fixed_challenge_get_challenge(struct auth_method_context *ctx, TALLOC_CTX *mem_ctx, DATA_BLOB *_blob) +static NTSTATUS fixed_challenge_get_challenge(struct auth_method_context *ctx, TALLOC_CTX *mem_ctx, uint8_t chal[8]) { - DATA_BLOB blob; const char *challenge = "I am a teapot"; - blob = data_blob_talloc(mem_ctx, challenge, 8); - NT_STATUS_HAVE_NO_MEMORY(blob.data); + memcpy(chal, challenge, 8); - *_blob = blob; return NT_STATUS_OK; } -- cgit