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 e49ef4e..ff52413 100644 --- a/h/md5.h +++ b/h/md5.h @@ -14,6 +14,12 @@ #include /* + * We need this for uint32_t + */ + +#include + +/* * Use prototypes for nmh/mh */ #define PROTOTYPES 1 @@ -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 -- 1.7.10.4