libnet: Fix Coverity ID 1634803 Dereference after null check
[samba4-gss.git] / auth / credentials / wscript_build
blob266ace096c8653a4bb5be6de5fcff9819ce89f0b
1 #!/usr/bin/env python
3 bld.SAMBA_LIBRARY('samba-credentials',
4 source='credentials.c',
5 public_headers='credentials.h',
6 pc_files='samba-credentials.pc',
7 deps='LIBCRYPTO samba-errors events LIBCLI_AUTH samba-security CREDENTIALS_SECRETS CREDENTIALS_KRB5 CREDENTIALS_GMSA',
8 vnum='1.0.0'
11 bld.SAMBA_SUBSYSTEM('CREDENTIALS_KRB5',
12 source='credentials_krb5.c',
13 deps='KERBEROS_SRV_KEYTAB KERBEROS_UTIL gssapi samba-credentials',
14 public_deps='com_err authkrb5',
17 bld.SAMBA_SUBSYSTEM('CREDENTIALS_GMSA',
18 source='credentials_gmsa.c',
19 deps='samba-credentials CREDENTIALS_NTLM NDR_GMSA ldb gkdi',
22 bld.SAMBA_SUBSYSTEM('CREDENTIALS_SECRETS',
23 source='credentials_secrets.c',
24 deps='CREDENTIALS_KRB5 CREDENTIALS_NTLM ldb SECRETS samdb-common dbwrap',
27 bld.SAMBA_SUBSYSTEM('CREDENTIALS_NTLM',
28 source='credentials_ntlm.c',
29 deps='samba-credentials GNUTLS_HELPERS')
31 bld.SAMBA_SUBSYSTEM('CREDENTIALS_CMDLINE',
32 source='credentials_cmdline.c',
33 deps='samba-credentials')
35 pyrpc_util = bld.pyembed_libname('pyrpc_util')
36 pytalloc_util = bld.pyembed_libname('pytalloc-util')
37 pyparam_util = bld.pyembed_libname('pyparam_util')
39 bld.SAMBA_PYTHON('pycredentials',
40 source='pycredentials.c',
41 public_deps='samba-credentials %s %s %s CREDENTIALS_CMDLINE CREDENTIALS_KRB5 CREDENTIALS_SECRETS' % (pyrpc_util, pytalloc_util, pyparam_util),
42 realname='samba/credentials.so'
45 bld.SAMBA_BINARY('test_creds',
46 source='tests/test_creds.c',
47 deps='cmocka samba-credentials',
48 local_include=False,
49 for_selftest=True)