summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2014-01-07 15:55:57 +0100
committerAndrew Bartlett <abartlet@samba.org>2014-01-08 08:12:29 +0100
commitf8363dd22a67108022bc0fe95003450f79057f7d (patch)
treebcc81ca6a30b591eab8ea8c0eb35b7152117bedf
parentaf5102fe0075520d62beba412c994d4a74f5446b (diff)
downloadsamba-f8363dd22a67108022bc0fe95003450f79057f7d.tar.gz
samba-f8363dd22a67108022bc0fe95003450f79057f7d.tar.xz
samba-f8363dd22a67108022bc0fe95003450f79057f7d.zip
crypto: fix build on OS X
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
-rw-r--r--lib/crypto/md5.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/crypto/md5.h b/lib/crypto/md5.h
index edae27f65bd..ec6128e86ca 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)