blob: ec73e9fdf2b309a1c368b23e83d24e6207a21160 (
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
|
/*************************************************
* X.509 CRL Header File *
* (C) 1999-2007 Jack Lloyd *
*************************************************/
#ifndef BOTAN_X509_CRL_H__
#define BOTAN_X509_CRL_H__
#include <botan/x509_obj.h>
#include <botan/crl_ent.h>
#include <vector>
namespace Botan {
/*************************************************
* X.509 CRL *
*************************************************/
class BOTAN_DLL X509_CRL : public X509_Object
{
public:
struct X509_CRL_Error : public Exception
{
X509_CRL_Error(const std::string& error) :
Exception("X509_CRL: " + error) {}
};
std::vector<CRL_Entry> get_revoked() const;
X509_DN issuer_dn() const;
MemoryVector<byte> authority_key_id() const;
u32bit crl_number() const;
X509_Time this_update() const;
X509_Time next_update() const;
X509_CRL(DataSource&, bool throw_on_unknown_critical = false);
X509_CRL(const std::string&, bool throw_on_unknown_critical = false);
private:
void force_decode();
bool throw_on_unknown_critical;
std::vector<CRL_Entry> revoked;
Data_Store info;
};
}
#endif
|