diff options
author | lloyd <[email protected]> | 2008-09-28 19:16:15 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-09-28 19:16:15 +0000 |
commit | 8534c9a67226ccffe7acbefbf3905aba10e88de3 (patch) | |
tree | 536e96a8b2763515104d6c90abddd3eb8aa74b19 /modules/x509/crl_ent.h | |
parent | 26ad026e8eb0521a9fb2f313f07f8fc7222d2ea8 (diff) |
Create an x509 module containing all of the X509 certificate and CA
code as well as the code for handling PKCS #10 requests.
Diffstat (limited to 'modules/x509/crl_ent.h')
-rw-r--r-- | modules/x509/crl_ent.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/modules/x509/crl_ent.h b/modules/x509/crl_ent.h new file mode 100644 index 000000000..05a9338b3 --- /dev/null +++ b/modules/x509/crl_ent.h @@ -0,0 +1,44 @@ +/************************************************* +* CRL Entry Header File * +* (C) 1999-2007 Jack Lloyd * +*************************************************/ + +#ifndef BOTAN_CRL_ENTRY_H__ +#define BOTAN_CRL_ENTRY_H__ + +#include <botan/x509cert.h> + +namespace Botan { + +/************************************************* +* CRL Entry * +*************************************************/ +class BOTAN_DLL CRL_Entry : public ASN1_Object + { + public: + void encode_into(class DER_Encoder&) const; + void decode_from(class BER_Decoder&); + + MemoryVector<byte> serial_number() const { return serial; } + X509_Time expire_time() const { return time; } + CRL_Code reason_code() const { return reason; } + + CRL_Entry(); + CRL_Entry(const X509_Certificate&, CRL_Code = UNSPECIFIED); + + private: + MemoryVector<byte> serial; + X509_Time time; + CRL_Code reason; + }; + +/************************************************* +* Comparison Operations * +*************************************************/ +BOTAN_DLL bool operator==(const CRL_Entry&, const CRL_Entry&); +BOTAN_DLL bool operator!=(const CRL_Entry&, const CRL_Entry&); +BOTAN_DLL bool operator<(const CRL_Entry&, const CRL_Entry&); + +} + +#endif |