]> git.ozlabs.org Git - ppp.git/blob - pppd/pathnames.h
pppd: Fix SIGSEGV in EAP-TLS code when TLS verify method is not specified
[ppp.git] / pppd / pathnames.h
1 /*
2  * define path names
3  */
4
5 #ifdef HAVE_PATHS_H
6 #include <paths.h>
7
8 #else /* HAVE_PATHS_H */
9 #ifndef _PATH_VARRUN
10 #define _PATH_VARRUN    "/etc/ppp/"
11 #endif
12 #define _PATH_DEVNULL   "/dev/null"
13 #endif /* HAVE_PATHS_H */
14
15 #ifndef _ROOT_PATH
16 #define _ROOT_PATH
17 #endif
18
19 #define _PATH_UPAPFILE   _ROOT_PATH "/etc/ppp/pap-secrets"
20 #define _PATH_CHAPFILE   _ROOT_PATH "/etc/ppp/chap-secrets"
21 #define _PATH_SRPFILE    _ROOT_PATH "/etc/ppp/srp-secrets"
22
23 #ifdef USE_EAPTLS
24 #define _PATH_EAPTLSCLIFILE     _ROOT_PATH "/etc/ppp/eaptls-client"
25 #define _PATH_EAPTLSSERVFILE    _ROOT_PATH "/etc/ppp/eaptls-server"
26 #define _PATH_OPENSSLCONFFILE   _ROOT_PATH "/etc/ppp/openssl.cnf"
27 #endif /* USE_EAPTLS */
28
29 #define _PATH_SYSOPTIONS _ROOT_PATH "/etc/ppp/options"
30 #define _PATH_IPUP       _ROOT_PATH "/etc/ppp/ip-up"
31 #define _PATH_IPDOWN     _ROOT_PATH "/etc/ppp/ip-down"
32 #define _PATH_IPPREUP    _ROOT_PATH "/etc/ppp/ip-pre-up"
33 #define _PATH_AUTHUP     _ROOT_PATH "/etc/ppp/auth-up"
34 #define _PATH_AUTHDOWN   _ROOT_PATH "/etc/ppp/auth-down"
35 #define _PATH_TTYOPT     _ROOT_PATH "/etc/ppp/options."
36 #define _PATH_CONNERRS   _ROOT_PATH "/etc/ppp/connect-errors"
37 #define _PATH_PEERFILES  _ROOT_PATH "/etc/ppp/peers/"
38 #define _PATH_RESOLV     _ROOT_PATH "/etc/ppp/resolv.conf"
39
40 #define _PATH_USEROPT    ".ppprc"
41 #define _PATH_PSEUDONYM  ".ppp_pseudonym"
42
43 #ifdef INET6
44 #define _PATH_IPV6UP     _ROOT_PATH "/etc/ppp/ipv6-up"
45 #define _PATH_IPV6DOWN   _ROOT_PATH "/etc/ppp/ipv6-down"
46 #endif
47
48 #ifdef IPX_CHANGE
49 #define _PATH_IPXUP      _ROOT_PATH "/etc/ppp/ipx-up"
50 #define _PATH_IPXDOWN    _ROOT_PATH "/etc/ppp/ipx-down"
51 #endif /* IPX_CHANGE */
52
53 #ifdef __STDC__
54 #define _PATH_PPPDB     _ROOT_PATH _PATH_VARRUN "pppd2.tdb"
55 #else /* __STDC__ */
56 #ifdef HAVE_PATHS_H
57 #define _PATH_PPPDB     "/var/run/pppd2.tdb"
58 #else
59 #define _PATH_PPPDB     "/etc/ppp/pppd2.tdb"
60 #endif
61 #endif /* __STDC__ */
62
63 #ifdef PLUGIN
64 #ifdef __STDC__
65 #define _PATH_PLUGIN    DESTDIR "/lib/pppd/" VERSION
66 #else /* __STDC__ */
67 #define _PATH_PLUGIN    "/usr/lib/pppd"
68 #endif /* __STDC__ */
69
70 #endif /* PLUGIN */