fixed "ipsec statusall" SPI formatting
[strongswan.git] / src / openac / build.h
1 /* Build a X.509 attribute certificate
2 * Copyright (C) 2002 Ueli Galizzi, Ariane Seiler
3 * Copyright (C) 2004,2007 Andreas Steffen
4 * Hochschule fuer Technik Rapperswil, Switzerland
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * for more details.
15 */
16
17 #ifndef _BUILD_H
18 #define _BUILD_H
19
20 #include <time.h>
21
22 #include <library.h>
23 #include <crypto/x509.h>
24 #include <crypto/rsa/rsa_private_key.h>
25 #include <utils/linked_list.h>
26
27 /*
28 * global variables accessible by both main() and build.c
29 */
30 extern x509_t *usercert;
31 extern x509_t *signercert;
32 extern rsa_private_key_t *signerkey;
33 extern linked_list_t *groups;
34 extern time_t notBefore;
35 extern time_t notAfter;
36 extern chunk_t serial;
37
38 /*
39 * exported functions
40 */
41 extern chunk_t build_attr_cert(void);
42
43 #endif /* _BUILD_H */