summaryrefslogtreecommitdiff
path: root/src/starter/keywords.h
blob: 1dae65a999973139881351db6dfe2d03b1818dc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
/* strongSwan keywords
 * Copyright (C) 2005 Andreas Steffen
 * Hochschule fuer Technik Rapperswil, Switzerland
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the
 * Free Software Foundation; either version 2 of the License, or (at your
 * option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * for more details.
 */

#ifndef _KEYWORDS_H_
#define _KEYWORDS_H_

typedef enum {
	/* config setup keywords */
	KW_INTERFACES,
	KW_DUMPDIR,
	KW_CHARONSTART,
	KW_PLUTOSTART,

	/* pluto/charon keywords */
	KW_PLUTODEBUG,
	KW_CHARONDEBUG,
	KW_PREPLUTO,
	KW_POSTPLUTO,
	KW_PLUTOSTDERRLOG,
	KW_UNIQUEIDS,
	KW_OVERRIDEMTU,
	KW_CRLCHECKINTERVAL,
	KW_CACHECRLS,
	KW_STRICTCRLPOLICY,
	KW_NOCRSEND,
	KW_NAT_TRAVERSAL,
	KW_KEEP_ALIVE,
	KW_FORCE_KEEPALIVE,
	KW_VIRTUAL_PRIVATE,
	KW_PKCS11MODULE,
	KW_PKCS11INITARGS,
	KW_PKCS11KEEPSTATE,
	KW_PKCS11PROXY,

#define KW_PLUTO_FIRST  KW_PLUTODEBUG
#define KW_PLUTO_LAST   KW_PKCS11PROXY

	/* KLIPS keywords */
	KW_KLIPSDEBUG,
	KW_FRAGICMP,
	KW_PACKETDEFAULT,
	KW_HIDETOS,

#define KW_KLIPS_FIRST  KW_KLIPSDEBUG
#define KW_KLIPS_LAST   KW_HIDETOS

#define KW_SETUP_FIRST  KW_INTERFACES
#define KW_SETUP_LAST   KW_HIDETOS

	/* conn section keywords */
	KW_CONN_NAME,
	KW_CONN_SETUP,
	KW_KEYEXCHANGE,
	KW_TYPE,
	KW_PFS,
	KW_COMPRESS,
	KW_INSTALLPOLICY,
	KW_AUTH,
	KW_AUTHBY,
	KW_EAP,
	KW_EAP_IDENTITY,
	KW_AAA_IDENTITY,
	KW_MOBIKE,
	KW_FORCEENCAPS,
	KW_IKELIFETIME,
	KW_KEYLIFE,
	KW_REKEYMARGIN,
	KW_LIFEBYTES,
	KW_MARGINBYTES,
	KW_LIFEPACKETS,
	KW_MARGINPACKETS,
	KW_KEYINGTRIES,
	KW_REKEYFUZZ,
	KW_REKEY,
	KW_REAUTH,
	KW_IKE,
	KW_ESP,
	KW_PFSGROUP,
	KW_DPDDELAY,
	KW_DPDTIMEOUT,
	KW_DPDACTION,
	KW_INACTIVITY,
	KW_MODECONFIG,
	KW_XAUTH,
	KW_XAUTH_IDENTITY,
	KW_MEDIATION,
	KW_MEDIATED_BY,
	KW_ME_PEERID,
	KW_REQID,
	KW_MARK,
	KW_MARK_IN,
	KW_MARK_OUT,

#define KW_CONN_FIRST   KW_CONN_SETUP
#define KW_CONN_LAST    KW_MARK_OUT

   /* ca section keywords */
	KW_CA_NAME,
	KW_CA_SETUP,
	KW_CACERT,
	KW_LDAPHOST,
	KW_LDAPBASE,
	KW_CRLURI,
	KW_CRLURI2,
	KW_OCSPURI,
	KW_OCSPURI2,
	KW_CERTURIBASE,

#define KW_CA_FIRST     KW_CA_SETUP
#define KW_CA_LAST      KW_CERTURIBASE

   /* end keywords */
	KW_HOST,
	KW_IKEPORT,
	KW_NEXTHOP,
	KW_SUBNET,
	KW_SUBNETWITHIN,
	KW_PROTOPORT,
	KW_SOURCEIP,
	KW_NATIP,
	KW_FIREWALL,
	KW_HOSTACCESS,
	KW_ALLOWANY,
	KW_UPDOWN,
	KW_AUTH1,
	KW_AUTH2,
	KW_ID,
	KW_ID2,
	KW_RSASIGKEY,
	KW_CERT,
	KW_CERT2,
	KW_SENDCERT,
	KW_CA,
	KW_CA2,
	KW_GROUPS,
	KW_IFACE,

#define KW_END_FIRST    KW_HOST
#define KW_END_LAST     KW_IFACE

   /* left end keywords */
	KW_LEFT,
	KW_LEFTIKEPORT,
	KW_LEFTNEXTHOP,
	KW_LEFTSUBNET,
	KW_LEFTSUBNETWITHIN,
	KW_LEFTPROTOPORT,
	KW_LEFTSOURCEIP,
	KW_LEFTNATIP,
	KW_LEFTFIREWALL,
	KW_LEFTHOSTACCESS,
	KW_LEFTALLOWANY,
	KW_LEFTUPDOWN,
	KW_LEFTAUTH,
	KW_LEFTAUTH2,
	KW_LEFTID,
	KW_LEFTID2,
	KW_LEFTRSASIGKEY,
	KW_LEFTCERT,
	KW_LEFTCERT2,
	KW_LEFTSENDCERT,
	KW_LEFTCA,
	KW_LEFTCA2,
	KW_LEFTGROUPS,

#define KW_LEFT_FIRST   KW_LEFT
#define KW_LEFT_LAST    KW_LEFTGROUPS

   /* right end keywords */
	KW_RIGHT,
	KW_RIGHTIKEPORT,
	KW_RIGHTNEXTHOP,
	KW_RIGHTSUBNET,
	KW_RIGHTSUBNETWITHIN,
	KW_RIGHTPROTOPORT,
	KW_RIGHTSOURCEIP,
	KW_RIGHTNATIP,
	KW_RIGHTFIREWALL,
	KW_RIGHTHOSTACCESS,
	KW_RIGHTALLOWANY,
	KW_RIGHTUPDOWN,
	KW_RIGHTAUTH,
	KW_RIGHTAUTH2,
	KW_RIGHTID,
	KW_RIGHTID2,
	KW_RIGHTRSASIGKEY,
	KW_RIGHTCERT,
	KW_RIGHTCERT2,
	KW_RIGHTSENDCERT,
	KW_RIGHTCA,
	KW_RIGHTCA2,
	KW_RIGHTGROUPS,

#define KW_RIGHT_FIRST  KW_RIGHT
#define KW_RIGHT_LAST   KW_RIGHTGROUPS

	/* general section keywords */
	KW_ALSO,
	KW_AUTO

} kw_token_t;

#endif /* _KEYWORDS_H_ */