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