2f677e367e2d60b1ff990bdc1be9ead12424aa6e
[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
101 #define KW_CA_FIRST KW_CA_SETUP
102 #define KW_CA_LAST KW_OCSPURI
103
104 /* end keywords */
105 KW_HOST,
106 KW_NEXTHOP,
107 KW_SUBNET,
108 KW_SUBNETWITHIN,
109 KW_PROTOPORT,
110 KW_SOURCEIP,
111 KW_NATIP,
112 KW_FIREWALL,
113 KW_HOSTACCESS,
114 KW_UPDOWN,
115 KW_ID,
116 KW_RSASIGKEY,
117 KW_CERT,
118 KW_SENDCERT,
119 KW_CA,
120 KW_GROUPS,
121 KW_IFACE,
122
123 #define KW_END_FIRST KW_HOST
124 #define KW_END_LAST KW_IFACE
125
126 /* left end keywords */
127 KW_LEFT,
128 KW_LEFTNEXTHOP,
129 KW_LEFTSUBNET,
130 KW_LEFTSUBNETWITHIN,
131 KW_LEFTPROTOPORT,
132 KW_LEFTSOURCEIP,
133 KW_LEFTNATIP,
134 KW_LEFTFIREWALL,
135 KW_LEFTHOSTACCESS,
136 KW_LEFTUPDOWN,
137 KW_LEFTID,
138 KW_LEFTRSASIGKEY,
139 KW_LEFTCERT,
140 KW_LEFTSENDCERT,
141 KW_LEFTCA,
142 KW_LEFTGROUPS,
143
144 #define KW_LEFT_FIRST KW_LEFT
145 #define KW_LEFT_LAST KW_LEFTGROUPS
146
147 /* right end keywords */
148 KW_RIGHT,
149 KW_RIGHTNEXTHOP,
150 KW_RIGHTSUBNET,
151 KW_RIGHTSUBNETWITHIN,
152 KW_RIGHTPROTOPORT,
153 KW_RIGHTSOURCEIP,
154 KW_RIGHTNATIP,
155 KW_RIGHTFIREWALL,
156 KW_RIGHTHOSTACCESS,
157 KW_RIGHTUPDOWN,
158 KW_RIGHTID,
159 KW_RIGHTRSASIGKEY,
160 KW_RIGHTCERT,
161 KW_RIGHTSENDCERT,
162 KW_RIGHTCA,
163 KW_RIGHTGROUPS,
164
165 #define KW_RIGHT_FIRST KW_RIGHT
166 #define KW_RIGHT_LAST KW_RIGHTGROUPS
167
168 /* general section keywords */
169 KW_ALSO,
170 KW_AUTO
171
172 } kw_token_t;
173
174 #endif /* _KEYWORDS_H_ */
175