Debian Codegraph @

src/include/features-h

raw
1 /*
2 * New defines for minimizing the size of the server, to strip
3 * out functionality.
4 *
5 * This is a hack and should be removed when the protocols are moved
6 * into individual modules.
7 */
8 #ifndef WITHOUT_PROXY
9 # define WITH_PROXY (1)
10 #else
11 # define WITHOUT_COA (1)
12 #endif
13
14 #ifndef WITHOUT_UNLANG
15 # define WITH_UNLANG (1)
16 #endif
17
18 #ifndef WITHOUT_ACCOUNTING
19 # define WITH_ACCOUNTING (1)
20 #endif
21
22 #ifdef WITH_ACCOUNTING
23 # ifndef WITHOUT_DETAIL
24 # define WITH_DETAIL (1)
25 # endif
26 #endif
27
28 #ifdef WITH_ACCOUNTING
29 # ifndef WITHOUT_SESSION_MGMT
30 # define WITH_SESSION_MGMT (1)
31 # endif
32 #endif
33
34 #ifndef WITHOUT_DYNAMIC_CLIENTS
35 # define WITH_DYNAMIC_CLIENTS (1)
36 #endif
37
38 #ifndef WITHOUT_STATS
39 # define WITH_STATS
40 #endif
41
42 #ifndef WITHOUT_COMMAND_SOCKET
43 # ifdef HAVE_SYS_UN_H
44 # define WITH_COMMAND_SOCKET (1)
45 # endif
46 #endif
47
48 #ifndef WITHOUT_COA
49 # define WITH_COA (1)
50 # ifndef WITH_PROXY
51 # error WITH_COA requires WITH_PROXY
52 # endif
53 #endif
54
55 #ifdef WITHOUT_TLS
56 # ifndef HAVE_OPENSSL_SSL_H
57 # error TLS requires OpenSSL
58 # endif
59 #else
60 # ifdef HAVE_OPENSSL_SSL_H
61 # ifndef WITH_TLS
62 # ifndef NO_OPENSSL
63 # define WITH_TLS (1)
64 # endif
65 # endif
66 # endif
67 #endif
68
69 #ifdef WITH_TLS
70 # ifdef WITH_COA
71 # ifndef WITHOUT_COA_TUNNEL
72 //# define WITH_COA_TUNNEL (1)
73 # endif
74 # endif
75 #endif
76
77 #ifdef WITH_COA_TUNNEL
78 # ifdef WITHOUT_TLS
79 # error Reverse CoA requests requires TLS
80 # endif
81 #endif
82
83 #ifdef WITH_RADIUSV11_ONLY
84 # define WITH_RADIUSV11
85 #else
86 # ifndef WITHOUT_RADIUSV11
87 # ifdef WITH_TLS
88 //# define WITH_RADIUSV11
89 # endif
90 # endif
91 #endif
92
93 #ifdef WITH_RADIUSV11
94 # ifndef WITH_TLS
95 # error RADIUSv11 requires TLS
96 # endif
97 #endif