From: Volker Lendecke Date: Wed, 21 Apr 2021 10:28:12 +0000 (+0200) Subject: auth3: Apply some const to auth3_context_set_challenge() X-Git-Tag: tevent-0.11.0~1025 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cdd9d423716f4f917a9f4589ac90ee1b21d11c02;p=thirdparty%2Fsamba.git auth3: Apply some const to auth3_context_set_challenge() Signed-off-by: Volker Lendecke Reviewed-by: Andreas Schneider --- diff --git a/source3/auth/auth.c b/source3/auth/auth.c index e67f4961ddb..ce6bf6c5621 100644 --- a/source3/auth/auth.c +++ b/source3/auth/auth.c @@ -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) { diff --git a/source3/auth/proto.h b/source3/auth/proto.h index bb247b9187c..036d4004c38 100644 --- a/source3/auth/proto.h +++ b/source3/auth/proto.h @@ -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.