]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
auth3: Apply some const to auth3_context_set_challenge()
authorVolker Lendecke <vl@samba.org>
Wed, 21 Apr 2021 10:28:12 +0000 (12:28 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 27 Apr 2021 13:24:35 +0000 (13:24 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/auth/auth.c
source3/auth/proto.h

index e67f4961ddbb8aa96dc06cced9f9d9977770a022..ce6bf6c56219d5c644803587bcc7a25b14fec9e1 100644 (file)
@@ -609,8 +609,10 @@ NTSTATUS make_auth3_context_for_winbind(TALLOC_CTX *mem_ctx,
        return make_auth_context_specific(mem_ctx, auth_context, methods);
 }
 
-bool auth3_context_set_challenge(struct auth_context *ctx, uint8_t chal[8],
-                                const char *challenge_set_by)
+bool auth3_context_set_challenge(
+       struct auth_context *ctx,
+       const uint8_t chal[8],
+       const char *challenge_set_by)
 {
        ctx->challenge = data_blob_talloc(ctx, chal, 8);
        if (ctx->challenge.data == NULL) {
index bb247b9187c8a586fd6e2dc04d7fb515c4b8a8b7..036d4004c382d71d5e8e30c985a0de0c505a3b05 100644 (file)
@@ -42,8 +42,10 @@ NTSTATUS make_auth3_context_for_netlogon(TALLOC_CTX *mem_ctx,
                                         struct auth_context **auth_context);
 NTSTATUS make_auth3_context_for_winbind(TALLOC_CTX *mem_ctx,
                                        struct auth_context **auth_context);
-bool auth3_context_set_challenge(struct auth_context *ctx, uint8_t chal[8],
-                                const char *challenge_set_by);
+bool auth3_context_set_challenge(
+       struct auth_context *ctx,
+       const uint8_t chal[8],
+       const char *challenge_set_by);
 
 /****************************************************************************
  Try to get a challenge out of the various authentication modules.