support of plutostderrlog keyword
[strongswan.git] / src / starter / keywords.h
1 /* strongSwan keywords
2 * Copyright (C) 2005 Andreas Steffen
3 * Hochschule fuer Technik Rapperswil, Switzerland
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * for more details.
14 *
15 * RCSID $Id$
16 */
17
18 #ifndef _KEYWORDS_H_
19 #define _KEYWORDS_H_
20
21 typedef enum {
22 /* config setup keywords */
23 KW_INTERFACES,
24 KW_DUMPDIR,
25 KW_CHARONSTART,
26 KW_PLUTOSTART,
27
28 /* pluto/charon keywords */
29 KW_PLUTODEBUG,
30 KW_CHARONDEBUG,
31 KW_PREPLUTO,
32 KW_POSTPLUTO,
33 KW_PLUTOSTDERRLOG,
34 KW_UNIQUEIDS,
35 KW_OVERRIDEMTU,
36 KW_CRLCHECKINTERVAL,
37 KW_CACHECRLS,
38 KW_STRICTCRLPOLICY,
39 KW_NOCRSEND,
40 KW_NAT_TRAVERSAL,
41 KW_KEEP_ALIVE,
42 KW_FORCE_KEEPALIVE,
43 KW_VIRTUAL_PRIVATE,
44 KW_PKCS11MODULE,
45 KW_PKCS11INITARGS,
46 KW_PKCS11KEEPSTATE,
47 KW_PKCS11PROXY,
48
49 #define KW_PLUTO_FIRST KW_PLUTODEBUG
50 #define KW_PLUTO_LAST KW_PKCS11PROXY
51
52 /* KLIPS keywords */
53 KW_KLIPSDEBUG,
54 KW_FRAGICMP,
55 KW_PACKETDEFAULT,
56 KW_HIDETOS,
57
58 #define KW_KLIPS_FIRST KW_KLIPSDEBUG
59 #define KW_KLIPS_LAST KW_HIDETOS
60
61 #define KW_SETUP_FIRST KW_INTERFACES
62 #define KW_SETUP_LAST KW_HIDETOS
63
64 /* conn section keywords */
65 KW_CONN_NAME,
66 KW_CONN_SETUP,
67 KW_KEYEXCHANGE,
68 KW_TYPE,
69 KW_PFS,
70 KW_COMPRESS,
71 KW_AUTH,
72 KW_AUTHBY,
73 KW_EAP,
74 KW_MOBIKE,
75 KW_FORCEENCAPS,
76 KW_IKELIFETIME,
77 KW_KEYLIFE,
78 KW_REKEYMARGIN,
79 KW_KEYINGTRIES,
80 KW_REKEYFUZZ,
81 KW_REKEY,
82 KW_REAUTH,
83 KW_IKE,
84 KW_ESP,
85 KW_PFSGROUP,
86 KW_DPDDELAY,
87 KW_DPDTIMEOUT,
88 KW_DPDACTION,
89 KW_MODECONFIG,
90 KW_XAUTH,
91 KW_MEDIATION,
92 KW_MEDIATED_BY,
93 KW_ME_PEERID,
94
95 #define KW_CONN_FIRST KW_CONN_SETUP
96 #define KW_CONN_LAST KW_ME_PEERID
97
98 /* ca section keywords */
99 KW_CA_NAME,
100 KW_CA_SETUP,
101 KW_CACERT,
102 KW_LDAPHOST,
103 KW_LDAPBASE,
104 KW_CRLURI,
105 KW_CRLURI2,
106 KW_OCSPURI,
107 KW_OCSPURI2,
108 KW_CERTURIBASE,
109
110 #define KW_CA_FIRST KW_CA_SETUP
111 #define KW_CA_LAST KW_CERTURIBASE
112
113 /* end keywords */
114 KW_HOST,
115 KW_NEXTHOP,
116 KW_SUBNET,
117 KW_SUBNETWITHIN,
118 KW_PROTOPORT,
119 KW_SOURCEIP,
120 KW_NATIP,
121 KW_FIREWALL,
122 KW_HOSTACCESS,
123 KW_ALLOWANY,
124 KW_UPDOWN,
125 KW_ID,
126 KW_RSASIGKEY,
127 KW_CERT,
128 KW_SENDCERT,
129 KW_CA,
130 KW_GROUPS,
131 KW_IFACE,
132
133 #define KW_END_FIRST KW_HOST
134 #define KW_END_LAST KW_IFACE
135
136 /* left end keywords */
137 KW_LEFT,
138 KW_LEFTNEXTHOP,
139 KW_LEFTSUBNET,
140 KW_LEFTSUBNETWITHIN,
141 KW_LEFTPROTOPORT,
142 KW_LEFTSOURCEIP,
143 KW_LEFTNATIP,
144 KW_LEFTFIREWALL,
145 KW_LEFTHOSTACCESS,
146 KW_LEFTALLOWANY,
147 KW_LEFTUPDOWN,
148 KW_LEFTID,
149 KW_LEFTRSASIGKEY,
150 KW_LEFTCERT,
151 KW_LEFTSENDCERT,
152 KW_LEFTCA,
153 KW_LEFTGROUPS,
154
155 #define KW_LEFT_FIRST KW_LEFT
156 #define KW_LEFT_LAST KW_LEFTGROUPS
157
158 /* right end keywords */
159 KW_RIGHT,
160 KW_RIGHTNEXTHOP,
161 KW_RIGHTSUBNET,
162 KW_RIGHTSUBNETWITHIN,
163 KW_RIGHTPROTOPORT,
164 KW_RIGHTSOURCEIP,
165 KW_RIGHTNATIP,
166 KW_RIGHTFIREWALL,
167 KW_RIGHTHOSTACCESS,
168 KW_RIGHTALLOWANY,
169 KW_RIGHTUPDOWN,
170 KW_RIGHTID,
171 KW_RIGHTRSASIGKEY,
172 KW_RIGHTCERT,
173 KW_RIGHTSENDCERT,
174 KW_RIGHTCA,
175 KW_RIGHTGROUPS,
176
177 #define KW_RIGHT_FIRST KW_RIGHT
178 #define KW_RIGHT_LAST KW_RIGHTGROUPS
179
180 /* general section keywords */
181 KW_ALSO,
182 KW_AUTO
183
184 } kw_token_t;
185
186 #endif /* _KEYWORDS_H_ */
187