blob: 66014821118410a20cc5b04efd1cf4bcf4f30adb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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
|