aboutsummaryrefslogtreecommitdiffstats
path: root/src/x509/x509_crl.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-09-28 19:29:24 +0000
committerlloyd <[email protected]>2008-09-28 19:29:24 +0000
commit9bcfe627321ddc81691b835dffaa6324ac4684a4 (patch)
treefe5e8ae9813b853549558b59833022e87e83981b /src/x509/x509_crl.h
parent9822a701516396b7de4e41339faecd48ff8dc8ff (diff)
Move all modules into src/ directory
Diffstat (limited to 'src/x509/x509_crl.h')
-rw-r--r--src/x509/x509_crl.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/x509/x509_crl.h b/src/x509/x509_crl.h
new file mode 100644
index 000000000..f7623b940
--- /dev/null
+++ b/src/x509/x509_crl.h
@@ -0,0 +1,46 @@
+/*************************************************
+* X.509 CRL Header File *
+* (C) 1999-2007 Jack Lloyd *
+*************************************************/
+
+#ifndef BOTAN_X509_CRL_H__
+#define BOTAN_X509_CRL_H__
+
+#include <botan/x509_obj.h>
+#include <botan/crl_ent.h>
+#include <vector>
+
+namespace Botan {
+
+/*************************************************
+* X.509 CRL *
+*************************************************/
+class BOTAN_DLL X509_CRL : public X509_Object
+ {
+ public:
+ struct X509_CRL_Error : public Exception
+ {
+ X509_CRL_Error(const std::string& error) :
+ Exception("X509_CRL: " + error) {}
+ };
+
+ std::vector<CRL_Entry> get_revoked() const;
+
+ X509_DN issuer_dn() const;
+ MemoryVector<byte> authority_key_id() const;
+
+ u32bit crl_number() const;
+ X509_Time this_update() const;
+ X509_Time next_update() const;
+
+ X509_CRL(DataSource&);
+ X509_CRL(const std::string&);
+ private:
+ void force_decode();
+ std::vector<CRL_Entry> revoked;
+ Data_Store info;
+ };
+
+}
+
+#endif