3374fa8c74f55cb910218cbc0c84e034606472d7
[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
16 #ifndef _KEYWORDS_H_
17 #define _KEYWORDS_H_
18
19 typedef enum {
20 /* config setup keywords */
21 KW_INTERFACES,
22 KW_DUMPDIR,
23 KW_CHARONSTART,
24 KW_PLUTOSTART,
25
26 /* pluto/charon keywords */
27 KW_PLUTODEBUG,
28 KW_CHARONDEBUG,
29 KW_PREPLUTO,
30 KW_POSTPLUTO,
31 KW_PLUTOSTDERRLOG,
32 KW_UNIQUEIDS,
33 KW_OVERRIDEMTU,
34 KW_CRLCHECKINTERVAL,
35 KW_CACHECRLS,
36 KW_STRICTCRLPOLICY,
37 KW_NOCRSEND,
38 KW_NAT_TRAVERSAL,
39 KW_KEEP_ALIVE,
40 KW_FORCE_KEEPALIVE,
41 KW_VIRTUAL_PRIVATE,
42 KW_PKCS11MODULE,
43 KW_PKCS11INITARGS,
44 KW_PKCS11KEEPSTATE,
45 KW_PKCS11PROXY,
46
47 #define KW_PLUTO_FIRST KW_PLUTODEBUG
48 #define KW_PLUTO_LAST KW_PKCS11PROXY
49
50 /* KLIPS keywords */
51 KW_KLIPSDEBUG,
52 KW_FRAGICMP,
53 KW_PACKETDEFAULT,
54 KW_HIDETOS,
55
56 #define KW_KLIPS_FIRST KW_KLIPSDEBUG
57 #define KW_KLIPS_LAST KW_HIDETOS
58
59 #define KW_SETUP_FIRST KW_INTERFACES
60 #define KW_SETUP_LAST KW_HIDETOS
61
62 /* conn section keywords */
63 KW_CONN_NAME,
64 KW_CONN_SETUP,
65 KW_KEYEXCHANGE,
66 KW_TYPE,
67 KW_PFS,
68 KW_COMPRESS,
69 KW_INSTALLPOLICY,
70 KW_AGGRESSIVE,
71 KW_AUTH,
72 KW_AUTHBY,
73 KW_EAP_IDENTITY,
74 KW_AAA_IDENTITY,
75 KW_MOBIKE,
76 KW_FORCEENCAPS,
77 KW_IKELIFETIME,
78 KW_KEYLIFE,
79 KW_REKEYMARGIN,
80 KW_LIFEBYTES,
81 KW_MARGINBYTES,
82 KW_LIFEPACKETS,
83 KW_MARGINPACKETS,
84 KW_KEYINGTRIES,
85 KW_REKEYFUZZ,
86 KW_REKEY,
87 KW_REAUTH,
88 KW_IKE,
89 KW_ESP,
90 KW_PFSGROUP,
91 KW_DPDDELAY,
92 KW_DPDTIMEOUT,
93 KW_DPDACTION,
94 KW_CLOSEACTION,
95 KW_INACTIVITY,
96 KW_MODECONFIG,
97 KW_XAUTH,
98 KW_XAUTH_IDENTITY,
99 KW_MEDIATION,
100 KW_MEDIATED_BY,
101 KW_ME_PEERID,
102 KW_REQID,
103 KW_MARK,
104 KW_MARK_IN,
105 KW_MARK_OUT,
106 KW_TFC,
107
108 #define KW_CONN_FIRST KW_CONN_SETUP
109 #define KW_CONN_LAST KW_TFC
110
111 /* ca section keywords */
112 KW_CA_NAME,
113 KW_CA_SETUP,
114 KW_CACERT,
115 KW_LDAPHOST,
116 KW_LDAPBASE,
117 KW_CRLURI,
118 KW_CRLURI2,
119 KW_OCSPURI,
120 KW_OCSPURI2,
121 KW_CERTURIBASE,
122
123 #define KW_CA_FIRST KW_CA_SETUP
124 #define KW_CA_LAST KW_CERTURIBASE
125
126 /* end keywords */
127 KW_HOST,
128 KW_IKEPORT,
129 KW_NEXTHOP,
130 KW_SUBNET,
131 KW_SUBNETWITHIN,
132 KW_PROTOPORT,
133 KW_SOURCEIP,
134 KW_NATIP,
135 KW_FIREWALL,
136 KW_HOSTACCESS,
137 KW_ALLOWANY,
138 KW_UPDOWN,
139 KW_AUTH1,
140 KW_AUTH2,
141 KW_ID,
142 KW_ID2,
143 KW_RSASIGKEY,
144 KW_CERT,
145 KW_CERT2,
146 KW_CERTPOLICY,
147 KW_SENDCERT,
148 KW_CA,
149 KW_CA2,
150 KW_GROUPS,
151 KW_IFACE,
152
153 #define KW_END_FIRST KW_HOST
154 #define KW_END_LAST KW_IFACE
155
156 /* left end keywords */
157 KW_LEFT,
158 KW_LEFTIKEPORT,
159 KW_LEFTNEXTHOP,
160 KW_LEFTSUBNET,
161 KW_LEFTSUBNETWITHIN,
162 KW_LEFTPROTOPORT,
163 KW_LEFTSOURCEIP,
164 KW_LEFTNATIP,
165 KW_LEFTFIREWALL,
166 KW_LEFTHOSTACCESS,
167 KW_LEFTALLOWANY,
168 KW_LEFTUPDOWN,
169 KW_LEFTAUTH,
170 KW_LEFTAUTH2,
171 KW_LEFTID,
172 KW_LEFTID2,
173 KW_LEFTRSASIGKEY,
174 KW_LEFTCERT,
175 KW_LEFTCERT2,
176 KW_LEFTCERTPOLICY,
177 KW_LEFTSENDCERT,
178 KW_LEFTCA,
179 KW_LEFTCA2,
180 KW_LEFTGROUPS,
181
182 #define KW_LEFT_FIRST KW_LEFT
183 #define KW_LEFT_LAST KW_LEFTGROUPS
184
185 /* right end keywords */
186 KW_RIGHT,
187 KW_RIGHTIKEPORT,
188 KW_RIGHTNEXTHOP,
189 KW_RIGHTSUBNET,
190 KW_RIGHTSUBNETWITHIN,
191 KW_RIGHTPROTOPORT,
192 KW_RIGHTSOURCEIP,
193 KW_RIGHTNATIP,
194 KW_RIGHTFIREWALL,
195 KW_RIGHTHOSTACCESS,
196 KW_RIGHTALLOWANY,
197 KW_RIGHTUPDOWN,
198 KW_RIGHTAUTH,
199 KW_RIGHTAUTH2,
200 KW_RIGHTID,
201 KW_RIGHTID2,
202 KW_RIGHTRSASIGKEY,
203 KW_RIGHTCERT,
204 KW_RIGHTCERT2,
205 KW_RIGHTCERTPOLICY,
206 KW_RIGHTSENDCERT,
207 KW_RIGHTCA,
208 KW_RIGHTCA2,
209 KW_RIGHTGROUPS,
210
211 #define KW_RIGHT_FIRST KW_RIGHT
212 #define KW_RIGHT_LAST KW_RIGHTGROUPS
213
214 /* general section keywords */
215 KW_ALSO,
216 KW_AUTO
217
218 } kw_token_t;
219
220 #endif /* _KEYWORDS_H_ */
221