blob: 4f734941f5ff0aecb1f3893c32dc80c8cb4a5eb9 (
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
|
/*************************************************
* Globally Saved X.509 State Header *
* (C) 1999-2007 Jack Lloyd *
*************************************************/
#include <botan/asn1_oid.h>
namespace Botan {
/*************************************************
* Prototype for a Certificate Extension *
*************************************************/
class Extension_Prototype
{
public:
virtual class Certificate_Extension* make(const OID&) = 0;
virtual ~Extension_Prototype() {}
};
/*************************************************
* X.509 Global State *
*************************************************/
class X509_GlobalState
{
public:
void add(Extension_Prototype*);
class Certificate_Extension* get_extension(const OID&) const;
X509_GlobalState();
~X509_GlobalState();
private:
std::vector<Extension_Prototype*> prototypes;
};
}
|