[Asterisk-cvs] gastman/include/asterisk md5.h,1.1,1.2

markster at lists.digium.com markster at lists.digium.com
Sat Jul 17 00:40:48 CDT 2004


Update of /usr/cvsroot/gastman/include/asterisk
In directory localhost.localdomain:/tmp/cvs-serv15334/include/asterisk

Modified Files:
	md5.h 
Log Message:
Fix for 64-bit


Index: md5.h
===================================================================
RCS file: /usr/cvsroot/gastman/include/asterisk/md5.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- md5.h	11 Mar 2003 06:00:39 -0000	1.1
+++ md5.h	17 Jul 2004 04:26:51 -0000	1.2
@@ -1,15 +1,11 @@
 #ifndef MD5_H
 #define MD5_H
 
-#ifdef __alpha
-typedef unsigned int uint32;
-#else
-typedef unsigned long uint32;
-#endif
+#include <inttypes.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