s4:auth/ntlm/auth_developer.c - "fixed_challenge_get_challenge" - fix the assignment...
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Tue, 6 Apr 2010 12:26:20 +0000 (14:26 +0200)
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Tue, 6 Apr 2010 12:54:10 +0000 (14:54 +0200)
This is a string buffer and not a DATA_BLOB.

source4/auth/ntlm/auth_developer.c

index c9048310c34dd6912e63c769ab0198fa65bfa26d..96491d62c9d7b2be2f6cf140b48833301a6b5098 100644 (file)
@@ -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;
 }