starter: Removed all unsupported keywords.
[strongswan.git] / src / starter / keywords.h
1 /*
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_CHARONDEBUG,
22 KW_UNIQUEIDS,
23 KW_CACHECRLS,
24 KW_STRICTCRLPOLICY,
25
26 #define KW_SETUP_FIRST KW_CHARONDEBUG
27 #define KW_SETUP_LAST KW_STRICTCRLPOLICY
28
29 /* conn section keywords */
30 KW_CONN_NAME,
31 KW_CONN_SETUP,
32 KW_KEYEXCHANGE,
33 KW_TYPE,
34 KW_COMPRESS,
35 KW_INSTALLPOLICY,
36 KW_AGGRESSIVE,
37 KW_AUTH,
38 KW_AUTHBY,
39 KW_EAP_IDENTITY,
40 KW_AAA_IDENTITY,
41 KW_MOBIKE,
42 KW_FORCEENCAPS,
43 KW_IKELIFETIME,
44 KW_KEYLIFE,
45 KW_REKEYMARGIN,
46 KW_LIFEBYTES,
47 KW_MARGINBYTES,
48 KW_LIFEPACKETS,
49 KW_MARGINPACKETS,
50 KW_KEYINGTRIES,
51 KW_REKEYFUZZ,
52 KW_REKEY,
53 KW_REAUTH,
54 KW_IKE,
55 KW_ESP,
56 KW_DPDDELAY,
57 KW_DPDTIMEOUT,
58 KW_DPDACTION,
59 KW_CLOSEACTION,
60 KW_INACTIVITY,
61 KW_MODECONFIG,
62 KW_XAUTH,
63 KW_XAUTH_IDENTITY,
64 KW_MEDIATION,
65 KW_MEDIATED_BY,
66 KW_ME_PEERID,
67 KW_REQID,
68 KW_MARK,
69 KW_MARK_IN,
70 KW_MARK_OUT,
71 KW_TFC,
72
73 #define KW_CONN_FIRST KW_CONN_SETUP
74 #define KW_CONN_LAST KW_TFC
75
76 /* ca section keywords */
77 KW_CA_NAME,
78 KW_CA_SETUP,
79 KW_CACERT,
80 KW_LDAPHOST,
81 KW_LDAPBASE,
82 KW_CRLURI,
83 KW_CRLURI2,
84 KW_OCSPURI,
85 KW_OCSPURI2,
86 KW_CERTURIBASE,
87
88 #define KW_CA_FIRST KW_CA_SETUP
89 #define KW_CA_LAST KW_CERTURIBASE
90
91 /* end keywords */
92 KW_HOST,
93 KW_IKEPORT,
94 KW_SUBNET,
95 KW_PROTOPORT,
96 KW_SOURCEIP,
97 KW_NATIP,
98 KW_FIREWALL,
99 KW_HOSTACCESS,
100 KW_ALLOWANY,
101 KW_UPDOWN,
102 KW_AUTH1,
103 KW_AUTH2,
104 KW_ID,
105 KW_ID2,
106 KW_RSASIGKEY,
107 KW_CERT,
108 KW_CERT2,
109 KW_CERTPOLICY,
110 KW_SENDCERT,
111 KW_CA,
112 KW_CA2,
113 KW_GROUPS,
114
115 #define KW_END_FIRST KW_HOST
116 #define KW_END_LAST KW_GROUPS
117
118 /* left end keywords */
119 KW_LEFT,
120 KW_LEFTIKEPORT,
121 KW_LEFTSUBNET,
122 KW_LEFTPROTOPORT,
123 KW_LEFTSOURCEIP,
124 KW_LEFTNATIP,
125 KW_LEFTFIREWALL,
126 KW_LEFTHOSTACCESS,
127 KW_LEFTALLOWANY,
128 KW_LEFTUPDOWN,
129 KW_LEFTAUTH,
130 KW_LEFTAUTH2,
131 KW_LEFTID,
132 KW_LEFTID2,
133 KW_LEFTRSASIGKEY,
134 KW_LEFTCERT,
135 KW_LEFTCERT2,
136 KW_LEFTCERTPOLICY,
137 KW_LEFTSENDCERT,
138 KW_LEFTCA,
139 KW_LEFTCA2,
140 KW_LEFTGROUPS,
141
142 #define KW_LEFT_FIRST KW_LEFT
143 #define KW_LEFT_LAST KW_LEFTGROUPS
144
145 /* right end keywords */
146 KW_RIGHT,
147 KW_RIGHTIKEPORT,
148 KW_RIGHTSUBNET,
149 KW_RIGHTPROTOPORT,
150 KW_RIGHTSOURCEIP,
151 KW_RIGHTNATIP,
152 KW_RIGHTFIREWALL,
153 KW_RIGHTHOSTACCESS,
154 KW_RIGHTALLOWANY,
155 KW_RIGHTUPDOWN,
156 KW_RIGHTAUTH,
157 KW_RIGHTAUTH2,
158 KW_RIGHTID,
159 KW_RIGHTID2,
160 KW_RIGHTRSASIGKEY,
161 KW_RIGHTCERT,
162 KW_RIGHTCERT2,
163 KW_RIGHTCERTPOLICY,
164 KW_RIGHTSENDCERT,
165 KW_RIGHTCA,
166 KW_RIGHTCA2,
167 KW_RIGHTGROUPS,
168
169 #define KW_RIGHT_FIRST KW_RIGHT
170 #define KW_RIGHT_LAST KW_RIGHTGROUPS
171
172 /* general section keywords */
173 KW_ALSO,
174 KW_AUTO
175
176 } kw_token_t;
177
178 #endif /* _KEYWORDS_H_ */
179