diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2023-08-07 12:49:59 +0200 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2023-08-07 13:10:27 +0000 |
commit | 72d49e31715346246723ae9d95d2891f77cb1c9e (patch) | |
tree | 93f0a623a1935fd79802631be955e43977c262ec /modules/pam_timestamp | |
parent | 43abfff43537092e20bc129f8208d082e73aff1a (diff) | |
download | pam-72d49e31715346246723ae9d95d2891f77cb1c9e.tar.gz pam-72d49e31715346246723ae9d95d2891f77cb1c9e.tar.bz2 pam-72d49e31715346246723ae9d95d2891f77cb1c9e.zip |
pam_timestamp: constify sha1 padding block
The padding block is only read from via memcpy(3).
Diffstat (limited to 'modules/pam_timestamp')
-rw-r--r-- | modules/pam_timestamp/sha1.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 <unistd.h> #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, |