3ffe0a9dc2c4242a87bec13dc7446e90ba9c301c
[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_UNIQUEIDS,
34 KW_OVERRIDEMTU,
35 KW_CRLCHECKINTERVAL,
36 KW_CACHECRLS,
37 KW_STRICTCRLPOLICY,
38 KW_NOCRSEND,
39 KW_NAT_TRAVERSAL,
40 KW_KEEP_ALIVE,
41 KW_FORCE_KEEPALIVE,
42 KW_VIRTUAL_PRIVATE,
43 KW_PKCS11MODULE,
44 KW_PKCS11INITARGS,
45 KW_PKCS11KEEPSTATE,
46 KW_PKCS11PROXY,
47
48 #define KW_PLUTO_FIRST KW_PLUTODEBUG
49 #define KW_PLUTO_LAST KW_PKCS11PROXY
50
51 /* KLIPS keywords */
52 KW_KLIPSDEBUG,
53 KW_FRAGICMP,
54 KW_PACKETDEFAULT,
55 KW_HIDETOS,
56
57 #define KW_KLIPS_FIRST KW_KLIPSDEBUG
58 #define KW_KLIPS_LAST KW_HIDETOS
59
60 #define KW_SETUP_FIRST KW_INTERFACES
61 #define KW_SETUP_LAST KW_HIDETOS
62
63 /* conn section keywords */
64 KW_CONN_NAME,
65 KW_CONN_SETUP,
66 KW_KEYEXCHANGE,
67 KW_TYPE,
68 KW_PFS,
69 KW_COMPRESS,
70 KW_AUTH,
71 KW_AUTHBY,
72 KW_EAP,
73 KW_MOBIKE,
74 KW_FORCEENCAPS,
75 KW_IKELIFETIME,
76 KW_KEYLIFE,
77 KW_REKEYMARGIN,
78 KW_KEYINGTRIES,
79 KW_REKEYFUZZ,
80 KW_REKEY,
81 KW_REAUTH,
82 KW_IKE,
83 KW_ESP,
84 KW_PFSGROUP,
85 KW_DPDDELAY,
86 KW_DPDTIMEOUT,
87 KW_DPDACTION,
88 KW_MODECONFIG,
89 KW_XAUTH,
90 KW_MEDIATION,
91 KW_MEDIATED_BY,
92 KW_ME_PEERID,
93
94 #define KW_CONN_FIRST KW_CONN_SETUP
95 #define KW_CONN_LAST KW_ME_PEERID
96
97 /* ca section keywords */
98 KW_CA_NAME,
99 KW_CA_SETUP,
100 KW_CACERT,
101 KW_LDAPHOST,
102 KW_LDAPBASE,
103 KW_CRLURI,
104 KW_CRLURI2,
105 KW_OCSPURI,
106 KW_OCSPURI2,
107 KW_CERTURIBASE,
108
109 #define KW_CA_FIRST KW_CA_SETUP
110 #define KW_CA_LAST KW_CERTURIBASE
111
112 /* end keywords */
113 KW_HOST,
114 KW_NEXTHOP,
115 KW_SUBNET,
116 KW_SUBNETWITHIN,
117 KW_PROTOPORT,
118 KW_SOURCEIP,
119 KW_NATIP,
120 KW_FIREWALL,
121 KW_HOSTACCESS,
122 KW_ALLOWANY,
123 KW_UPDOWN,
124 KW_ID,
125 KW_RSASIGKEY,
126 KW_CERT,
127 KW_SENDCERT,
128 KW_CA,
129 KW_GROUPS,
130 KW_IFACE,
131
132 #define KW_END_FIRST KW_HOST
133 #define KW_END_LAST KW_IFACE
134
135 /* left end keywords */
136 KW_LEFT,
137 KW_LEFTNEXTHOP,
138 KW_LEFTSUBNET,
139 KW_LEFTSUBNETWITHIN,
140 KW_LEFTPROTOPORT,
141 KW_LEFTSOURCEIP,
142 KW_LEFTNATIP,
143 KW_LEFTFIREWALL,
144 KW_LEFTHOSTACCESS,
145 KW_LEFTALLOWANY,
146 KW_LEFTUPDOWN,
147 KW_LEFTID,
148 KW_LEFTRSASIGKEY,
149 KW_LEFTCERT,
150 KW_LEFTSENDCERT,
151 KW_LEFTCA,
152 KW_LEFTGROUPS,
153
154 #define KW_LEFT_FIRST KW_LEFT
155 #define KW_LEFT_LAST KW_LEFTGROUPS
156
157 /* right end keywords */
158 KW_RIGHT,
159 KW_RIGHTNEXTHOP,
160 KW_RIGHTSUBNET,
161 KW_RIGHTSUBNETWITHIN,
162 KW_RIGHTPROTOPORT,
163 KW_RIGHTSOURCEIP,
164 KW_RIGHTNATIP,
165 KW_RIGHTFIREWALL,
166 KW_RIGHTHOSTACCESS,
167 KW_RIGHTALLOWANY,
168 KW_RIGHTUPDOWN,
169 KW_RIGHTID,
170 KW_RIGHTRSASIGKEY,
171 KW_RIGHTCERT,
172 KW_RIGHTSENDCERT,
173 KW_RIGHTCA,
174 KW_RIGHTGROUPS,
175
176 #define KW_RIGHT_FIRST KW_RIGHT
177 #define KW_RIGHT_LAST KW_RIGHTGROUPS
178
179 /* general section keywords */
180 KW_ALSO,
181 KW_AUTO
182
183 } kw_token_t;
184
185 #endif /* _KEYWORDS_H_ */
186