mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
b68f72c7f5
CommonCrypto/CommonDigest is available on Mac and there is function in the libc for MD5 calculation. MD5Final is a C define of CC_MD5_Final. Under some circumstance we have the symbol defined twice in samba binaries on Snow Leopard at least. By detecting CommonCrypto/CommonDigest we end up always using the system version if available.
23 lines
588 B
Python
23 lines
588 B
Python
#!/usr/bin/env python
|
|
|
|
extra_source = ''
|
|
extra_deps = ''
|
|
if bld.CONFIG_SET('HAVE_BSD_MD5_H'):
|
|
extra_deps += ' bsd'
|
|
elif not bld.CONFIG_SET('HAVE_COMMONCRYPTO_COMMONDIGEST_H'):
|
|
extra_source += ' md5.c'
|
|
|
|
bld.SAMBA_SUBSYSTEM('LIBCRYPTO',
|
|
source='''crc32.c hmacmd5.c md4.c arcfour.c sha256.c hmacsha256.c
|
|
aes.c rijndael-alg-fst.c aes_cmac_128.c
|
|
''' + extra_source,
|
|
deps='talloc' + extra_deps
|
|
)
|
|
|
|
bld.SAMBA_SUBSYSTEM('TORTURE_LIBCRYPTO',
|
|
source='md4test.c md5test.c hmacmd5test.c aes_cmac_128_test.c',
|
|
autoproto='test_proto.h',
|
|
deps='LIBCRYPTO'
|
|
)
|
|
|