aboutsummaryrefslogtreecommitdiff
path: root/modules/pam_unix/md5.h
diff options
context:
space:
mode:
authorSteve Langasek <steve.langasek@canonical.com>2022-08-16 22:06:15 -0700
committerSteve Langasek <steve.langasek@canonical.com>2022-08-16 22:11:24 -0700
commit7561896529a7af05201dc31e959a05897ef99e19 (patch)
tree14514b088f45d4fecd3b7a6ede5e0a99f6c10f6a /modules/pam_unix/md5.h
parentd071f8c9829cbd60e2a98ab5e6b1ddfdffb9b549 (diff)
parent99d0d1c5c4f07332daa86e73981267a761bc966e (diff)
downloadpam-7561896529a7af05201dc31e959a05897ef99e19.tar.gz
pam-7561896529a7af05201dc31e959a05897ef99e19.tar.bz2
pam-7561896529a7af05201dc31e959a05897ef99e19.zip
Merge new upstream version 1.5.2.
Diffstat (limited to 'modules/pam_unix/md5.h')
-rw-r--r--modules/pam_unix/md5.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/modules/pam_unix/md5.h b/modules/pam_unix/md5.h
index d9186b7f..3dc54bd2 100644
--- a/modules/pam_unix/md5.h
+++ b/modules/pam_unix/md5.h
@@ -7,9 +7,15 @@
typedef unsigned int uint32;
struct MD5Context {
- uint32 buf[4];
+ union {
+ uint32 i[4];
+ unsigned char c[16] PAM_ATTRIBUTE_ALIGNED(4);
+ } buf;
uint32 bits[2];
- unsigned char in[64] PAM_ATTRIBUTE_ALIGNED(4);
+ union {
+ uint32 i[16];
+ unsigned char c[64] PAM_ATTRIBUTE_ALIGNED(4);
+ } in;
};
void GoodMD5Init(struct MD5Context *);