d527fa0b4114335c11e4b0e8d505e7213449d095
[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: keywords.h,v 1.8 2006/04/17 10:30:27 as Exp $
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_VIRTUAL_PRIVATE,
42 KW_EAPDIR,
43 KW_PKCS11MODULE,
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_AUTH,
70 KW_AUTHBY,
71 KW_EAP,
72 KW_IKELIFETIME,
73 KW_KEYLIFE,
74 KW_REKEYMARGIN,
75 KW_KEYINGTRIES,
76 KW_REKEYFUZZ,
77 KW_REKEY,
78 KW_REAUTH,
79 KW_IKE,
80 KW_ESP,
81 KW_PFSGROUP,
82 KW_DPDDELAY,
83 KW_DPDTIMEOUT,
84 KW_DPDACTION,
85 KW_MODECONFIG,
86 KW_XAUTH,
87
88 #define KW_CONN_FIRST KW_CONN_SETUP
89 #define KW_CONN_LAST KW_XAUTH
90
91 /* ca section keywords */
92 KW_CA_NAME,
93 KW_CA_SETUP,
94 KW_CACERT,
95 KW_LDAPHOST,
96 KW_LDAPBASE,
97 KW_CRLURI,
98 KW_CRLURI2,
99 KW_OCSPURI,
100 KW_OCSPURI2,
101
102 #define KW_CA_FIRST KW_CA_SETUP
103 #define KW_CA_LAST KW_OCSPURI2
104
105 /* end keywords */
106 KW_HOST,
107 KW_NEXTHOP,
108 KW_SUBNET,
109 KW_SUBNETWITHIN,
110 KW_PROTOPORT,
111 KW_SOURCEIP,
112 KW_NATIP,
113 KW_FIREWALL,
114 KW_HOSTACCESS,
115 KW_ALLOWANY,
116 KW_UPDOWN,
117 KW_ID,
118 KW_RSASIGKEY,
119 KW_CERT,
120 KW_SENDCERT,
121 KW_CA,
122 KW_GROUPS,
123 KW_IFACE,
124
125 #define KW_END_FIRST KW_HOST
126 #define KW_END_LAST KW_IFACE
127
128 /* left end keywords */
129 KW_LEFT,
130 KW_LEFTNEXTHOP,
131 KW_LEFTSUBNET,
132 KW_LEFTSUBNETWITHIN,
133 KW_LEFTPROTOPORT,
134 KW_LEFTSOURCEIP,
135 KW_LEFTNATIP,
136 KW_LEFTFIREWALL,
137 KW_LEFTHOSTACCESS,
138 KW_LEFTALLOWANY,
139 KW_LEFTUPDOWN,
140 KW_LEFTID,
141 KW_LEFTRSASIGKEY,
142 KW_LEFTCERT,
143 KW_LEFTSENDCERT,
144 KW_LEFTCA,
145 KW_LEFTGROUPS,
146
147 #define KW_LEFT_FIRST KW_LEFT
148 #define KW_LEFT_LAST KW_LEFTGROUPS
149
150 /* right end keywords */
151 KW_RIGHT,
152 KW_RIGHTNEXTHOP,
153 KW_RIGHTSUBNET,
154 KW_RIGHTSUBNETWITHIN,
155 KW_RIGHTPROTOPORT,
156 KW_RIGHTSOURCEIP,
157 KW_RIGHTNATIP,
158 KW_RIGHTFIREWALL,
159 KW_RIGHTHOSTACCESS,
160 KW_RIGHTALLOWANY,
161 KW_RIGHTUPDOWN,
162 KW_RIGHTID,
163 KW_RIGHTRSASIGKEY,
164 KW_RIGHTCERT,
165 KW_RIGHTSENDCERT,
166 KW_RIGHTCA,
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