python:tests: Clean lsa_utils.py code according to Python standards
[Samba.git] / lib / crypto / wscript
blob251eaae363ce51e5ad18044e6c18166433c92e99
1 #!/usr/bin/env python
4 def build(bld):
5 bld.SAMBA_SUBSYSTEM("GNUTLS_HELPERS",
6 source='''
7 gnutls_error.c
8 gnutls_aead_aes_256_cbc_hmac_sha512.c
9 gnutls_arcfour_confounded_md5.c
10 gnutls_weak_crypto.c
11 gnutls_sp800_108.c
12 ''',
13 deps="gnutls samba-errors")
15 bld.SAMBA_SUBSYSTEM('LIBCRYPTO',
16 source='''
17 md4.c
18 ''',
19 deps='''
20 talloc
21 ''')
23 bld.SAMBA_SUBSYSTEM('TORTURE_LIBCRYPTO',
24 source='md4test.c',
25 autoproto='test_proto.h',
26 deps='''
27 LIBCRYPTO
28 ''')
30 bld.SAMBA_SUBSYSTEM('gkdi',
31 source='gkdi.c',
32 deps='''
33 talloc
34 GNUTLS_HELPERS
35 NDR_GKDI
36 ''')
38 bld.SAMBA_SUBSYSTEM('gmsa',
39 source='gmsa.c',
40 deps='''
41 gkdi
42 ''')
44 bld.SAMBA_PYTHON('python_crypto',
45 source='py_crypto.c',
46 deps='gnutls talloc LIBCLI_AUTH',
47 realname='samba/crypto.so')
49 bld.SAMBA_BINARY('test_gnutls_aead_aes_256_cbc_hmac_sha512',
50 source='''
51 gnutls_error.c
52 tests/test_gnutls_aead_aes_256_cbc_hmac_sha512.c
53 ''',
54 deps='cmocka gnutls samba-util samba-errors',
55 local_include=False,
56 for_selftest=True)
58 bld.SAMBA_BINARY('test_gnutls_sp800_108',
59 source='''
60 tests/test_gnutls_sp800_108.c
61 ''',
62 deps='cmocka GNUTLS_HELPERS samba-util',
63 local_include=False,
64 for_selftest=True)
66 bld.SAMBA_BINARY('test_gkdi',
67 source='test_gkdi.c',
68 deps='cmocka gkdi gmsa talloc NDR_GKDI NDR_GMSA samba-util samba-security',
69 for_selftest=True)
71 bld.SAMBA_BINARY('test_gkdi_key_derivation',
72 source='test_gkdi_key_derivation.c',
73 deps='cmocka gkdi talloc NDR_GKDI samba-util samba-security',
74 for_selftest=True)