aboutsummaryrefslogtreecommitdiffstats
path: root/include/x509_ca.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-05-18 18:33:19 +0000
committerlloyd <[email protected]>2006-05-18 18:33:19 +0000
commita2c99d3270eb73ef2db5704fc54356c6b75096f8 (patch)
treead3d6c4fcc8dd0f403f8105598943616246fe172 /include/x509_ca.h
Initial checkin1.5.6
Diffstat (limited to 'include/x509_ca.h')
-rw-r--r--include/x509_ca.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/include/x509_ca.h b/include/x509_ca.h
new file mode 100644
index 000000000..75e8ac04b
--- /dev/null
+++ b/include/x509_ca.h
@@ -0,0 +1,56 @@
+/*************************************************
+* X.509 Certificate Authority Header File *
+* (C) 1999-2006 The Botan Project *
+*************************************************/
+
+#ifndef BOTAN_X509_CA_H__
+#define BOTAN_X509_CA_H__
+
+#include <botan/x509cert.h>
+#include <botan/x509_crl.h>
+#include <botan/pkcs8.h>
+#include <botan/pkcs10.h>
+#include <botan/pubkey.h>
+
+namespace Botan {
+
+/*************************************************
+* X.509 Certificate Authority *
+*************************************************/
+class X509_CA
+ {
+ public:
+ X509_Certificate sign_request(const PKCS10_Request&, u32bit = 0) const;
+
+ X509_Certificate ca_certificate() const;
+
+ X509_CRL new_crl(u32bit = 0) const;
+ X509_CRL update_crl(const X509_CRL&, const std::vector<CRL_Entry>&,
+ u32bit = 0) const;
+
+ static X509_Certificate make_cert(PK_Signer*, const AlgorithmIdentifier&,
+ const MemoryRegion<byte>&,
+ const MemoryRegion<byte>&,
+ const X509_Time&, const X509_Time&,
+ const X509_DN&, const X509_DN&,
+ bool, u32bit, const AlternativeName&,
+ const AlternativeName&,
+ Key_Constraints,
+ const std::vector<OID>&);
+
+ X509_CA(const X509_Certificate&, const PKCS8_PrivateKey&);
+ ~X509_CA();
+ private:
+ X509_CA(const X509_CA&) {}
+ X509_CA& operator=(const X509_CA&) { return (*this); }
+
+ X509_CRL make_crl(const std::vector<CRL_Entry>&, u32bit, u32bit) const;
+
+ AlgorithmIdentifier ca_sig_algo;
+ X509_Certificate cert;
+ PK_Signer* signer;
+ };
+
+}
+
+#endif