2017-09-06 21:59:44 +03:00
#!/usr/bin/env python
2021-08-02 17:28:53 +03:00
2017-09-06 21:59:44 +03:00
2021-08-02 17:34:05 +03:00
def build(bld):
2024-03-05 11:55:47 +03:00
legacy_gnutls_helpers = ''
if not bld.CONFIG_SET('HAVE_GNUTLS_CB_TLS_SERVER_END_POINT'):
legacy_gnutls_helpers += ' gnutls_server_end_point_cb.c'
2021-08-02 17:34:05 +03:00
bld.SAMBA_SUBSYSTEM("GNUTLS_HELPERS",
source='''
gnutls_error.c
2021-08-02 17:21:19 +03:00
gnutls_aead_aes_256_cbc_hmac_sha512.c
2021-08-02 17:34:05 +03:00
gnutls_arcfour_confounded_md5.c
gnutls_weak_crypto.c
2023-11-29 01:36:57 +03:00
gnutls_sp800_108.c
2024-03-05 11:55:47 +03:00
''' + legacy_gnutls_helpers,
2021-08-02 17:34:05 +03:00
deps="gnutls samba-errors")
bld.SAMBA_SUBSYSTEM('LIBCRYPTO',
source='''
md4.c
''',
deps='''
talloc
2022-10-27 01:09:19 +03:00
''')
2021-08-02 17:34:05 +03:00
bld.SAMBA_SUBSYSTEM('TORTURE_LIBCRYPTO',
source='md4test.c',
autoproto='test_proto.h',
deps='''
LIBCRYPTO
''')
2023-11-13 07:08:58 +03:00
bld.SAMBA_SUBSYSTEM('gkdi',
2023-11-13 07:08:58 +03:00
source='gkdi.c',
deps='''
talloc
GNUTLS_HELPERS
NDR_GKDI
''')
2023-11-13 07:08:58 +03:00
2021-08-02 17:34:05 +03:00
bld.SAMBA_PYTHON('python_crypto',
source='py_crypto.c',
2022-07-06 06:36:26 +03:00
deps='gnutls talloc LIBCLI_AUTH',
2021-08-02 17:34:05 +03:00
realname='samba/crypto.so')
2021-08-03 15:14:07 +03:00
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)
2023-11-30 01:00:57 +03:00
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)
2023-12-22 01:04:51 +03:00
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)