monotone

monotone Mtn Source Tree

Root/botan/crl_ent.h

1/*************************************************
2* CRL Entry Header File *
3* (C) 1999-2005 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
17 {
18 public:
19 MemoryVector<byte> serial;
20 X509_Time time;
21 CRL_Code reason;
22 CRL_Entry();
23 CRL_Entry(const X509_Certificate&, CRL_Code = UNSPECIFIED);
24 };
25
26/*************************************************
27* Comparison Operations *
28*************************************************/
29bool operator==(const CRL_Entry&, const CRL_Entry&);
30bool operator!=(const CRL_Entry&, const CRL_Entry&);
31bool operator<(const CRL_Entry&, const CRL_Entry&);
32
33/*************************************************
34* DER Encoding Functions *
35*************************************************/
36namespace DER {
37
38void encode(DER_Encoder&, const CRL_Entry&);
39
40}
41
42/*************************************************
43* BER Decoding Functions *
44*************************************************/
45namespace BER {
46
47void decode(BER_Decoder&, CRL_Entry&);
48
49}
50
51}
52
53#endif

Archive Download this file

Branches

Tags

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