From 23346694ffc1337359c76ea3b6b158f4dc3e0c6d Mon Sep 17 00:00:00 2001 From: Ken Hornstein Date: Mon, 5 Mar 2012 13:21:04 -0500 Subject: [PATCH] Change this to use "uint32_t" for a 32-bit type, otherwise we can get wrong MD5 checksums on 64-bit systems. Score another one for the test suite! --- h/md5.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/h/md5.h b/h/md5.h index e49ef4e0..ff52413e 100644 --- a/h/md5.h +++ b/h/md5.h @@ -13,6 +13,12 @@ #include +/* + * We need this for uint32_t + */ + +#include + /* * Use prototypes for nmh/mh */ @@ -35,7 +41,7 @@ typedef unsigned char *POINTER; typedef unsigned short int UINT2; /* UINT4 defines a four byte word */ -typedef unsigned long int UINT4; +typedef uint32_t UINT4; /* PROTO_LIST is defined depending on how PROTOTYPES is defined above. If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it -- 2.39.5