summaryrefslogtreecommitdiffstats
path: root/libcli/auth/wscript_build
blob: c73e0d15e3cd61d23a85a6c079460908a603fb0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#!/usr/bin/env python

bld.SAMBA_LIBRARY('cliauth',
                  source='',
                  deps='MSRPC_PARSE LIBCLI_AUTH COMMON_SCHANNEL PAM_ERRORS SPNEGO_PARSE krb5samba samba-errors NTLM_CHECK UTIL_LSARPC',
                  private_library=True,
                  grouping_library=True)

bld.SAMBA_SUBSYSTEM('MSRPC_PARSE',
	source='msrpc_parse.c',
	deps='talloc'
	)

bld.SAMBA_SUBSYSTEM('NTLM_CHECK',
                    source='ntlm_check.c',
                    deps = 'talloc LIBCLI_AUTH'
                    )

bld.SAMBA_SUBSYSTEM('LIBCLI_AUTH',
	source='credentials.c session.c smbencrypt.c smbdes.c',
	public_deps='MSRPC_PARSE gnutls GNUTLS_HELPERS util_str_escape',
	public_headers='credentials.h:domain_credentials.h'
	)


bld.SAMBA_SUBSYSTEM('COMMON_SCHANNEL',
	source='schannel_state_tdb.c',
	deps='dbwrap util_tdb samba-hostconfig NDR_NETLOGON'
	)

bld.SAMBA_SUBSYSTEM('NETLOGON_CREDS_CLI',
        source='netlogon_creds_cli.c',
        deps='''
        dbwrap
        util_tdb
        tevent-util
        samba-hostconfig
        gensec
        RPC_NDR_NETLOGON
        NDR_NETLOGON
        '''
        )

bld.SAMBA_SUBSYSTEM('PAM_ERRORS',
	source='pam_errors.c',
	deps='talloc'
	)

bld.SAMBA_SUBSYSTEM('SPNEGO_PARSE',
                    source='spnego_parse.c',
                    deps='asn1util')

bld.SAMBA_BINARY(
        'test_ntlm_check',
        source='tests/ntlm_check.c',
        deps='''
             NTLM_CHECK
             CREDENTIALS_NTLM
             samba-credentials
             cmocka
             talloc
        ''',
        for_selftest=True
    )

bld.SAMBA_BINARY('test_rc4_passwd_buffer',
                 source='tests/test_rc4_passwd_buffer.c',
                 deps='''
                      INIT_SAMR
                      LIBCLI_AUTH
                      cmocka
                      ''',
                 for_selftest=True)

bld.SAMBA_BINARY('test_schannel',
                 source='tests/test_schannel.c',
                 deps='''
                      gensec
                      cmocka
                      ''',
                 for_selftest=True)

bld.SAMBA_BINARY('test_gnutls',
                 source='tests/test_gnutls.c',
                 deps='''
                      gnutls
                      LIBCLI_AUTH
                      cmocka
                      samba-util
                      ''',
                 for_selftest=True)

bld.SAMBA_BINARY('test_encode_decode',
                 source='tests/test_encode_decode.c',
                 deps='''
                      LIBCLI_AUTH
                      cmocka
                      samba-util
                      ''',
                 for_selftest=True)