handle zero size Base64 conversions
[strongswan.git] / src / stroke / stroke_keywords.h
1 /* stroke keywords
2 * Copyright (C) 2006 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
16 #ifndef _STROKE_KEYWORDS_H_
17 #define _STROKE_KEYWORDS_H_
18
19 typedef enum {
20 STROKE_ADD,
21 STROKE_DEL,
22 STROKE_DELETE,
23 STROKE_ROUTE,
24 STROKE_UNROUTE,
25 STROKE_UP,
26 STROKE_DOWN,
27 STROKE_DOWN_SRCIP,
28 STROKE_REKEY,
29 STROKE_LOGLEVEL,
30 STROKE_STATUS,
31 STROKE_STATUSALL,
32 STROKE_LIST_PUBKEYS,
33 STROKE_LIST_CERTS,
34 STROKE_LIST_CACERTS,
35 STROKE_LIST_OCSPCERTS,
36 STROKE_LIST_AACERTS,
37 STROKE_LIST_ACERTS,
38 STROKE_LIST_GROUPS,
39 STROKE_LIST_CAINFOS,
40 STROKE_LIST_CRLS,
41 STROKE_LIST_OCSP,
42 STROKE_LIST_ALGS,
43 STROKE_LIST_ALL,
44 STROKE_REREAD_SECRETS,
45 STROKE_REREAD_CACERTS,
46 STROKE_REREAD_OCSPCERTS,
47 STROKE_REREAD_AACERTS,
48 STROKE_REREAD_ACERTS,
49 STROKE_REREAD_CRLS,
50 STROKE_REREAD_ALL,
51 STROKE_PURGE_OCSP,
52 STROKE_PURGE_CRLS,
53 STROKE_PURGE_CERTS,
54 STROKE_PURGE_IKE,
55 STROKE_EXPORT_X509,
56 STROKE_LEASES,
57 } stroke_keyword_t;
58
59 #define STROKE_LIST_FIRST STROKE_LIST_PUBKEYS
60 #define STROKE_REREAD_FIRST STROKE_REREAD_SECRETS
61 #define STROKE_PURGE_FIRST STROKE_PURGE_OCSP
62 #define STROKE_EXPORT_FIRST STROKE_EXPORT_X509
63
64 typedef struct stroke_token stroke_token_t;
65
66 extern const stroke_token_t* in_word_set(register const char *str, register unsigned int len);
67
68 #endif /* _STROKE_KEYWORDS_H_ */
69