[Asterisk-cvs] asterisk/include/asterisk md5.h,1.2,1.3
citats at lists.digium.com
citats at lists.digium.com
Tue Mar 30 18:57:21 CST 2004
Update of /usr/cvsroot/asterisk/include/asterisk
In directory mongoose.digium.com:/home/citats/cvs/asterisk/include/asterisk
Modified Files:
md5.h
Log Message:
Fix md5 on 64bit systems (aside from alpha)
Index: md5.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/md5.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- md5.h 25 Dec 2001 21:12:07 -0000 1.2
+++ md5.h 30 Mar 2004 23:54:21 -0000 1.3
@@ -1,15 +1,11 @@
#ifndef MD5_H
#define MD5_H
-#ifdef __alpha
-typedef unsigned int uint32;
-#else
-typedef unsigned long uint32;
-#endif
+#include <stdint.h>
struct MD5Context {
- uint32 buf[4];
- uint32 bits[2];
+ uint32_t buf[4];
+ uint32_t bits[2];
unsigned char in[64];
};
@@ -17,6 +13,6 @@
void MD5Update(struct MD5Context *context, unsigned char const *buf,
unsigned len);
void MD5Final(unsigned char digest[16], struct MD5Context *context);
-void MD5Transform(uint32 buf[4], uint32 const in[16]);
+void MD5Transform(uint32_t buf[4], uint32_t const in[16]);
#endif /* !MD5_H */
More information about the svn-commits
mailing list