blob: 562398942547a37bcefbed3e09df12a55e1be746 (
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-2006 The Botan Project *
*************************************************/
#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;
};
}
|