summaryrefslogtreecommitdiff
path: root/modules/pam_timestamp/sha1.h
diff options
context:
space:
mode:
authorTBK <tbk@jjtc.eu>2020-02-26 00:24:39 +0100
committerTomáš Mráz <t8m@users.noreply.github.com>2020-02-26 08:16:18 +0100
commit5956cf525bfb53ed0c5cade3b58f18fde4f85c42 (patch)
tree797b3ef5e01ac77e186b3906501339b094dbfe7e /modules/pam_timestamp/sha1.h
parent8bd03a7dd02399cca16a4593018ab6e8d03a2ff9 (diff)
libpamc: Use ISO C99 uintX_t types instead of u_intX_t
u_intX_t is a glibcism this fixes the issue of compiling against musl libc.
Diffstat (limited to 'modules/pam_timestamp/sha1.h')
-rw-r--r--modules/pam_timestamp/sha1.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/pam_timestamp/sha1.h b/modules/pam_timestamp/sha1.h
index 667b87ca..a445e4e6 100644
--- a/modules/pam_timestamp/sha1.h
+++ b/modules/pam_timestamp/sha1.h
@@ -38,6 +38,7 @@
#ifndef pam_timestamp_sha1_h
#define pam_timestamp_sha1_h
+#include <stdint.h>
#include <sys/types.h>
#define SHA1_BLOCK_SIZE 64
@@ -45,9 +46,9 @@
struct sha1_context {
size_t count;
unsigned char pending[SHA1_BLOCK_SIZE];
- u_int32_t counts[2];
+ uint32_t counts[2];
size_t pending_count;
- u_int32_t a, b, c, d, e;
+ uint32_t a, b, c, d, e;
};
#define SHA1_OUTPUT_SIZE 20