diff options
Diffstat (limited to '')
-rw-r--r-- | lib/crypto/wscript | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/lib/crypto/wscript b/lib/crypto/wscript new file mode 100644 index 0000000..eaa18c5 --- /dev/null +++ b/lib/crypto/wscript @@ -0,0 +1,63 @@ +#!/usr/bin/env python + + +def build(bld): + bld.SAMBA_SUBSYSTEM("GNUTLS_HELPERS", + source=''' + gnutls_error.c + gnutls_aead_aes_256_cbc_hmac_sha512.c + gnutls_arcfour_confounded_md5.c + gnutls_weak_crypto.c + gnutls_sp800_108.c + ''', + deps="gnutls samba-errors") + + bld.SAMBA_SUBSYSTEM('LIBCRYPTO', + source=''' + md4.c + ''', + deps=''' + talloc + ''') + + bld.SAMBA_SUBSYSTEM('TORTURE_LIBCRYPTO', + source='md4test.c', + autoproto='test_proto.h', + deps=''' + LIBCRYPTO + ''') + + bld.SAMBA_SUBSYSTEM('gkdi', + source='gkdi.c', + deps=''' + talloc + GNUTLS_HELPERS + NDR_GKDI + ''') + + bld.SAMBA_PYTHON('python_crypto', + source='py_crypto.c', + deps='gnutls talloc LIBCLI_AUTH', + realname='samba/crypto.so') + + bld.SAMBA_BINARY('test_gnutls_aead_aes_256_cbc_hmac_sha512', + source=''' + gnutls_error.c + tests/test_gnutls_aead_aes_256_cbc_hmac_sha512.c + ''', + deps='cmocka gnutls samba-util samba-errors', + local_include=False, + for_selftest=True) + + bld.SAMBA_BINARY('test_gnutls_sp800_108', + source=''' + tests/test_gnutls_sp800_108.c + ''', + deps='cmocka GNUTLS_HELPERS samba-util', + local_include=False, + for_selftest=True) + + bld.SAMBA_BINARY('test_gkdi_key_derivation', + source='test_gkdi_key_derivation.c', + deps='cmocka gkdi talloc NDR_GKDI samba-util samba-security', + for_selftest=True) |