lib/crypto: Add GnuTLS helper function samba_gnutls_arcfour_confounded_md5()
[amitay/samba.git] / lib / crypto / wscript_build
1 #!/usr/bin/env python
2
3 extra_deps = ''
4
5 if bld.CONFIG_SET("HAVE_AESNI_INTEL"):
6         extra_deps += ' aesni-intel'
7
8 bld.SAMBA_SUBSYSTEM('GNUTLS_HELPERS',
9                     source='''
10                     gnutls_error.c
11                     gnutls_arcfour_confounded_md5.c
12                     ''',
13                     deps='gnutls samba-errors LIBCRYPTO');
14
15 bld.SAMBA_SUBSYSTEM('LIBCRYPTO',
16         source='''md4.c arcfour.c
17         aes.c rijndael-alg-fst.c aes_cmac_128.c aes_ccm_128.c aes_gcm_128.c
18         ''',
19         deps='talloc' + extra_deps
20         )
21
22 bld.SAMBA_SUBSYSTEM('TORTURE_LIBCRYPTO',
23         source='''md4test.c
24             aes_cmac_128_test.c aes_ccm_128_test.c aes_gcm_128_test.c
25         ''',
26         autoproto='test_proto.h',
27         deps='LIBCRYPTO'
28         )
29
30 bld.SAMBA_PYTHON('python_crypto',
31                  source='py_crypto.c',
32                  deps='LIBCRYPTO',
33                  realname='samba/crypto.so'
34                 )