[PATCH 2/2] crypto: fix build on OS X
Björn Jacke
bj at sernet.de
Tue Jan 7 07:55:57 MST 2014
we also need to use the CC_MD5_CTX from CommonCrypto here instead of the MD5_CTX
Signed-off-by: Bjoern Jacke <bj at sernet.de>
---
lib/crypto/md5.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/crypto/md5.h b/lib/crypto/md5.h
index edae27f..ec6128e 100644
--- a/lib/crypto/md5.h
+++ b/lib/crypto/md5.h
@@ -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)
--
1.8.3.4
More information about the samba-technical
mailing list