monotone

monotone Mtn Source Tree

Root/botan/crl_ent.h

1/*************************************************
2* CRL Entry Header File *
3* (C) 1999-2006 The Botan Project *
4*************************************************/
5
6#ifndef BOTAN_CRL_ENTRY_H__
7#define BOTAN_CRL_ENTRY_H__
8
9#include <botan/x509cert.h>
10
11namespace Botan {
12
13/*************************************************
14* CRL Entry *
15*************************************************/
16class CRL_Entry : public ASN1_Object
17 {
18 public:
19 void encode_into(class DER_Encoder&) const;
20 void decode_from(class BER_Decoder&);
21
22 MemoryVector<byte> serial_number() const { return serial; }
23 X509_Time expire_time() const { return time; }
24 CRL_Code reason_code() const { return reason; }
25
26 CRL_Entry();
27 CRL_Entry(const X509_Certificate&, CRL_Code = UNSPECIFIED);
28
29 private:
30 MemoryVector<byte> serial;
31 X509_Time time;
32 CRL_Code reason;
33 };
34
35/*************************************************
36* Comparison Operations *
37*************************************************/
38bool operator==(const CRL_Entry&, const CRL_Entry&);
39bool operator!=(const CRL_Entry&, const CRL_Entry&);
40bool operator<(const CRL_Entry&, const CRL_Entry&);
41
42}
43
44#endif

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status