crypto: fix build on OS X
authorBjörn Jacke <bj@sernet.de>
Tue, 7 Jan 2014 14:55:57 +0000 (15:55 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 8 Jan 2014 07:12:29 +0000 (08:12 +0100)
we also need to use the CC_MD5_CTX from CommonCrypto here instead of the MD5_CTX

Signed-off-by: Bjoern Jacke <bj@sernet.de>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed Jan  8 08:12:29 CET 2014 on sn-devel-104

lib/crypto/md5.h

index edae27f65bd809089b4ddffe1cbd6dd4808f73df..ec6128e86cab7bab132f1cc79f2fc426fc9be85d 100644 (file)
@@ -18,6 +18,7 @@
 #elif defined(HAVE_COMMONCRYPTO_COMMONDIGEST_H)
 #include <CommonCrypto/CommonDigest.h>
 
+#define MD5_CTX                                        CC_MD5_CTX
 #define MD5Init(c)                                     CC_MD5_Init(c)
 #define MD5Update(c,d,l)                       CC_MD5_Update(c,d,l)
 #define MD5Final(m, c)                         CC_MD5_Final((unsigned char *)m,c)