66f86679ebed60ac2c0a14eb14110d79fb7f2058
[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_PKCS11MODULE,
43 KW_PKCS11KEEPSTATE,
44 KW_PKCS11PROXY,
45
46 #define KW_PLUTO_FIRST KW_PLUTODEBUG
47 #define KW_PLUTO_LAST KW_PKCS11PROXY
48
49 /* KLIPS keywords */
50 KW_KLIPSDEBUG,
51 KW_FRAGICMP,
52 KW_PACKETDEFAULT,
53 KW_HIDETOS,
54
55 #define KW_KLIPS_FIRST KW_KLIPSDEBUG
56 #define KW_KLIPS_LAST KW_HIDETOS
57
58 #define KW_SETUP_FIRST KW_INTERFACES
59 #define KW_SETUP_LAST KW_HIDETOS
60
61 /* conn section keywords */
62 KW_CONN_NAME,
63 KW_CONN_SETUP,
64 KW_KEYEXCHANGE,
65 KW_TYPE,
66 KW_PFS,
67 KW_COMPRESS,
68 KW_AUTH,
69 KW_AUTHBY,
70 KW_IKELIFETIME,
71 KW_KEYLIFE,
72 KW_REKEYMARGIN,
73 KW_KEYINGTRIES,
74 KW_REKEYFUZZ,
75 KW_REKEY,
76 KW_REAUTH,
77 KW_IKE,
78 KW_ESP,
79 KW_PFSGROUP,
80 KW_DPDDELAY,
81 KW_DPDTIMEOUT,
82 KW_DPDACTION,
83 KW_MODECONFIG,
84 KW_XAUTH,
85
86 #define KW_CONN_FIRST KW_CONN_SETUP
87 #define KW_CONN_LAST KW_XAUTH
88
89 /* ca section keywords */
90 KW_CA_NAME,
91 KW_CA_SETUP,
92 KW_CACERT,
93 KW_LDAPHOST,
94 KW_LDAPBASE,
95 KW_CRLURI,
96 KW_CRLURI2,
97 KW_OCSPURI,
98
99 #define KW_CA_FIRST KW_CA_SETUP
100 #define KW_CA_LAST KW_OCSPURI
101
102 /* end keywords */
103 KW_HOST,
104 KW_NEXTHOP,
105 KW_SUBNET,
106 KW_SUBNETWITHIN,
107 KW_PROTOPORT,
108 KW_SOURCEIP,
109 KW_NATIP,
110 KW_FIREWALL,
111 KW_HOSTACCESS,
112 KW_UPDOWN,
113 KW_ID,
114 KW_RSASIGKEY,
115 KW_CERT,
116 KW_SENDCERT,
117 KW_CA,
118 KW_GROUPS,
119 KW_IFACE,
120
121 #define KW_END_FIRST KW_HOST
122 #define KW_END_LAST KW_IFACE
123
124 /* left end keywords */
125 KW_LEFT,
126 KW_LEFTNEXTHOP,
127 KW_LEFTSUBNET,
128 KW_LEFTSUBNETWITHIN,
129 KW_LEFTPROTOPORT,
130 KW_LEFTSOURCEIP,
131 KW_LEFTNATIP,
132 KW_LEFTFIREWALL,
133 KW_LEFTHOSTACCESS,
134 KW_LEFTUPDOWN,
135 KW_LEFTID,
136 KW_LEFTRSASIGKEY,
137 KW_LEFTCERT,
138 KW_LEFTSENDCERT,
139 KW_LEFTCA,
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_RIGHTNEXTHOP,
148 KW_RIGHTSUBNET,
149 KW_RIGHTSUBNETWITHIN,
150 KW_RIGHTPROTOPORT,
151 KW_RIGHTSOURCEIP,
152 KW_RIGHTNATIP,
153 KW_RIGHTFIREWALL,
154 KW_RIGHTHOSTACCESS,
155 KW_RIGHTUPDOWN,
156 KW_RIGHTID,
157 KW_RIGHTRSASIGKEY,
158 KW_RIGHTCERT,
159 KW_RIGHTSENDCERT,
160 KW_RIGHTCA,
161 KW_RIGHTGROUPS,
162
163 #define KW_RIGHT_FIRST KW_RIGHT
164 #define KW_RIGHT_LAST KW_RIGHTGROUPS
165
166 /* general section keywords */
167 KW_ALSO,
168 KW_AUTO
169
170 } kw_token_t;
171
172 #endif /* _KEYWORDS_H_ */
173