moved builder hooks to a separate file
[strongswan.git] / src / pluto / builder.h
1 /* Pluto certificate/CRL/AC builder hooks.
2 * Copyright (C) 2009 Martin Willi
3 * HSR Hochschule fuer Technik Rapperswil
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 _BUILDER_H
17 #define _BUILDER_H
18
19 /* types of pluto credentials */
20 typedef enum {
21 /* cert_t certificate, either x509 or PGP */
22 CRED_TYPE_CERTIFICATE,
23 /* x509crl_t certificate revocation list */
24 CRED_TYPE_CRL,
25 /* x509acert_t attribute certificate */
26 CRED_TYPE_AC,
27 } cred_type_t;
28
29 /* register credential builder hooks */
30 extern void init_builder();
31 /* unregister credential builder hooks */
32 extern void free_builder();
33
34 #endif /* _BUILDER_H */