aboutsummaryrefslogtreecommitdiffstats
path: root/include/crl_ent.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/crl_ent.h
Initial checkin1.5.6
Diffstat (limited to 'include/crl_ent.h')
-rw-r--r--include/crl_ent.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/include/crl_ent.h b/include/crl_ent.h
new file mode 100644
index 000000000..660148211
--- /dev/null
+++ b/include/crl_ent.h
@@ -0,0 +1,53 @@
+/*************************************************
+* CRL Entry Header File *
+* (C) 1999-2006 The Botan Project *
+*************************************************/
+
+#ifndef BOTAN_CRL_ENTRY_H__
+#define BOTAN_CRL_ENTRY_H__
+
+#include <botan/x509cert.h>
+
+namespace Botan {
+
+/*************************************************
+* CRL Entry *
+*************************************************/
+class CRL_Entry
+ {
+ public:
+ MemoryVector<byte> serial;
+ X509_Time time;
+ CRL_Code reason;
+ CRL_Entry();
+ CRL_Entry(const X509_Certificate&, CRL_Code = UNSPECIFIED);
+ };
+
+/*************************************************
+* Comparison Operations *
+*************************************************/
+bool operator==(const CRL_Entry&, const CRL_Entry&);
+bool operator!=(const CRL_Entry&, const CRL_Entry&);
+bool operator<(const CRL_Entry&, const CRL_Entry&);
+
+/*************************************************
+* DER Encoding Functions *
+*************************************************/
+namespace DER {
+
+void encode(DER_Encoder&, const CRL_Entry&);
+
+}
+
+/*************************************************
+* BER Decoding Functions *
+*************************************************/
+namespace BER {
+
+void decode(BER_Decoder&, CRL_Entry&);
+
+}
+
+}
+
+#endif