[PATCH 2/2] crypto: fix build on OS X
Andrew Bartlett
abartlet at samba.org
Tue Jan 7 11:38:41 MST 2014
On Tue, 2014-01-07 at 15:55 +0100, Björn Jacke wrote:
> 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)
These two MD5 patches look good.
Reviewed-by: Andrew Bartlett <abartlet at samba.org>
--
Andrew Bartlett http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
Samba Developer, Catalyst IT http://catalyst.net.nz/services/samba
More information about the samba-technical
mailing list