eac73756736bb222844764f0237b854a16ac561d
[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_IKE,
77 KW_ESP,
78 KW_PFSGROUP,
79 KW_DPDDELAY,
80 KW_DPDTIMEOUT,
81 KW_DPDACTION,
82 KW_MODECONFIG,
83 KW_XAUTH,
84
85 #define KW_CONN_FIRST KW_CONN_SETUP
86 #define KW_CONN_LAST KW_XAUTH
87
88 /* ca section keywords */
89 KW_CA_NAME,
90 KW_CA_SETUP,
91 KW_CACERT,
92 KW_LDAPHOST,
93 KW_LDAPBASE,
94 KW_CRLURI,
95 KW_CRLURI2,
96 KW_OCSPURI,
97
98 #define KW_CA_FIRST KW_CA_SETUP
99 #define KW_CA_LAST KW_OCSPURI
100
101 /* end keywords */
102 KW_HOST,
103 KW_NEXTHOP,
104 KW_SUBNET,
105 KW_SUBNETWITHIN,
106 KW_PROTOPORT,
107 KW_SOURCEIP,
108 KW_NATIP,
109 KW_FIREWALL,
110 KW_HOSTACCESS,
111 KW_UPDOWN,
112 KW_ID,
113 KW_RSASIGKEY,
114 KW_CERT,
115 KW_SENDCERT,
116 KW_CA,
117 KW_GROUPS,
118 KW_IFACE,
119
120 #define KW_END_FIRST KW_HOST
121 #define KW_END_LAST KW_IFACE
122
123 /* left end keywords */
124 KW_LEFT,
125 KW_LEFTNEXTHOP,
126 KW_LEFTSUBNET,
127 KW_LEFTSUBNETWITHIN,
128 KW_LEFTPROTOPORT,
129 KW_LEFTSOURCEIP,
130 KW_LEFTNATIP,
131 KW_LEFTFIREWALL,
132 KW_LEFTHOSTACCESS,
133 KW_LEFTUPDOWN,
134 KW_LEFTID,
135 KW_LEFTRSASIGKEY,
136 KW_LEFTCERT,
137 KW_LEFTSENDCERT,
138 KW_LEFTCA,
139 KW_LEFTGROUPS,
140
141 #define KW_LEFT_FIRST KW_LEFT
142 #define KW_LEFT_LAST KW_LEFTGROUPS
143
144 /* right end keywords */
145 KW_RIGHT,
146 KW_RIGHTNEXTHOP,
147 KW_RIGHTSUBNET,
148 KW_RIGHTSUBNETWITHIN,
149 KW_RIGHTPROTOPORT,
150 KW_RIGHTSOURCEIP,
151 KW_RIGHTNATIP,
152 KW_RIGHTFIREWALL,
153 KW_RIGHTHOSTACCESS,
154 KW_RIGHTUPDOWN,
155 KW_RIGHTID,
156 KW_RIGHTRSASIGKEY,
157 KW_RIGHTCERT,
158 KW_RIGHTSENDCERT,
159 KW_RIGHTCA,
160 KW_RIGHTGROUPS,
161
162 #define KW_RIGHT_FIRST KW_RIGHT
163 #define KW_RIGHT_LAST KW_RIGHTGROUPS
164
165 /* general section keywords */
166 KW_ALSO,
167 KW_AUTO
168
169 } kw_token_t;
170
171 #endif /* _KEYWORDS_H_ */
172