aboutsummaryrefslogtreecommitdiffstats
path: root/src/pluto/builder.h
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2009-08-13 10:48:22 +0200
committerMartin Willi <martin@strongswan.org>2009-08-26 11:23:49 +0200
commita5dc4a9585e3f5882974872f80fbc69decccb4fe (patch)
tree3bd668edc5999273c5cedf2d11d3b554b4bb1b0c /src/pluto/builder.h
parent11aa7e78694463a6cfa20d8a780d37b1435a456f (diff)
downloadstrongswan-a5dc4a9585e3f5882974872f80fbc69decccb4fe.tar.bz2
strongswan-a5dc4a9585e3f5882974872f80fbc69decccb4fe.tar.xz
moved builder hooks to a separate file
Diffstat (limited to 'src/pluto/builder.h')
-rw-r--r--src/pluto/builder.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/pluto/builder.h b/src/pluto/builder.h
new file mode 100644
index 000000000..17ae85331
--- /dev/null
+++ b/src/pluto/builder.h
@@ -0,0 +1,34 @@
+/* Pluto certificate/CRL/AC builder hooks.
+ * Copyright (C) 2009 Martin Willi
+ * HSR Hochschule fuer Technik Rapperswil
+ *
+ * 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 _BUILDER_H
+#define _BUILDER_H
+
+/* types of pluto credentials */
+typedef enum {
+ /* cert_t certificate, either x509 or PGP */
+ CRED_TYPE_CERTIFICATE,
+ /* x509crl_t certificate revocation list */
+ CRED_TYPE_CRL,
+ /* x509acert_t attribute certificate */
+ CRED_TYPE_AC,
+} cred_type_t;
+
+/* register credential builder hooks */
+extern void init_builder();
+/* unregister credential builder hooks */
+extern void free_builder();
+
+#endif /* _BUILDER_H */