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