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