masqmail-0.2
diff src/pop3_in.c @ 162:52c82d755215
replaced the MD5 implementation with the one of Solar Designer
Until now, the sample code of RFC 1321 was used. It had an ugly license.
Now we use the implementation of Solar Designer, which is in the Public Domain.
http://openwall.info/wiki/people/solar/software/public-domain-source-code/md5
author | meillo@marmaro.de |
---|---|
date | Sun, 18 Jul 2010 22:01:04 +0200 |
parents | 2685e59f6f43 |
children |
line diff
1.1 --- a/src/pop3_in.c Sun Jul 18 10:48:14 2010 +0200 1.2 +++ b/src/pop3_in.c Sun Jul 18 22:01:04 2010 +0200 1.3 @@ -27,7 +27,6 @@ 1.4 #ifdef USE_LIB_CRYPTO 1.5 #include <openssl/md5.h> 1.6 #else 1.7 -#include "md5/global.h" 1.8 #include "md5/md5.h" 1.9 #endif 1.10 1.11 @@ -47,9 +46,9 @@ 1.12 #ifdef USE_LIB_CRYPTO 1.13 MD5(string, strlen(string), digest); 1.14 #else 1.15 - MD5Init(&context); 1.16 - MD5Update(&context, string, strlen(string)); 1.17 - MD5Final(digest, &context); 1.18 + MD5_Init(&context); 1.19 + MD5_Update(&context, string, strlen(string)); 1.20 + MD5_Final(digest, &context); 1.21 #endif 1.22 for (i = 0; i < 16; i++) 1.23 sprintf(str_digest + 2 * i, "%02x", digest[i]);