summaryrefslogtreecommitdiff
path: root/lib/crypto/wscript_build
blob: f50269879b541ce2171a2da4cf8c70b8ed9fa2d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env python

extra_source = ''
extra_deps = ''
if bld.CONFIG_SET('HAVE_BSD_MD5_H'):
	extra_deps += ' bsd'
else:
	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'
	)