From 72d49e31715346246723ae9d95d2891f77cb1c9e Mon Sep 17 00:00:00 2001 From: Christian Göttsche Date: Mon, 7 Aug 2023 12:49:59 +0200 Subject: pam_timestamp: constify sha1 padding block The padding block is only read from via memcpy(3). --- modules/pam_timestamp/sha1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/pam_timestamp') diff --git a/modules/pam_timestamp/sha1.c b/modules/pam_timestamp/sha1.c index d713aed1..2adb5a3b 100644 --- a/modules/pam_timestamp/sha1.c +++ b/modules/pam_timestamp/sha1.c @@ -48,7 +48,7 @@ #include #include "sha1.h" -static unsigned char +static const unsigned char padding[SHA1_BLOCK_SIZE] = { 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -- cgit v1.2.3