added missing equals() method assignment for ID_ANY identities
[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_AUTH,
71 KW_AUTHBY,
72 KW_EAP,
73 KW_EAP_IDENTITY,
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_LEFTAUTH,
149 KW_LEFTAUTH2,
150 KW_LEFTID,
151 KW_LEFTID2,
152 KW_LEFTRSASIGKEY,
153 KW_LEFTCERT,
154 KW_LEFTCERT2,
155 KW_LEFTSENDCERT,
156 KW_LEFTCA,
157 KW_LEFTCA2,
158 KW_LEFTGROUPS,
159
160 #define KW_LEFT_FIRST KW_LEFT
161 #define KW_LEFT_LAST KW_LEFTGROUPS
162
163 /* right end keywords */
164 KW_RIGHT,
165 KW_RIGHTNEXTHOP,
166 KW_RIGHTSUBNET,
167 KW_RIGHTSUBNETWITHIN,
168 KW_RIGHTPROTOPORT,
169 KW_RIGHTSOURCEIP,
170 KW_RIGHTNATIP,
171 KW_RIGHTFIREWALL,
172 KW_RIGHTHOSTACCESS,
173 KW_RIGHTALLOWANY,
174 KW_RIGHTUPDOWN,
175 KW_RIGHTAUTH,
176 KW_RIGHTAUTH2,
177 KW_RIGHTID,
178 KW_RIGHTID2,
179 KW_RIGHTRSASIGKEY,
180 KW_RIGHTCERT,
181 KW_RIGHTCERT2,
182 KW_RIGHTSENDCERT,
183 KW_RIGHTCA,
184 KW_RIGHTCA2,
185 KW_RIGHTGROUPS,
186
187 #define KW_RIGHT_FIRST KW_RIGHT
188 #define KW_RIGHT_LAST KW_RIGHTGROUPS
189
190 /* general section keywords */
191 KW_ALSO,
192 KW_AUTO
193
194 } kw_token_t;
195
196 #endif /* _KEYWORDS_H_ */
197