blob: c64a8493dad8dcd65f543b7460192c36979342dc (
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
|
/*
* Enumerations
* (C) 1999-2007 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#ifndef BOTAN_ENUMS_H__
#define BOTAN_ENUMS_H__
#include <botan/ber_dec.h>
namespace Botan {
/**
* X.509v3 Key Constraints.
*/
enum Key_Constraints {
NO_CONSTRAINTS = 0,
DIGITAL_SIGNATURE = 32768,
NON_REPUDIATION = 16384,
KEY_ENCIPHERMENT = 8192,
DATA_ENCIPHERMENT = 4096,
KEY_AGREEMENT = 2048,
KEY_CERT_SIGN = 1024,
CRL_SIGN = 512,
ENCIPHER_ONLY = 256,
DECIPHER_ONLY = 128
};
/**
* BER Decoding Function for key constraints
*/
namespace BER {
void BOTAN_DLL decode(BER_Decoder&, Key_Constraints&);
}
/*
* Various Other Enumerations
*/
/**
* The two types of X509 encoding supported by Botan.
*/
enum X509_Encoding { RAW_BER, PEM };
}
#endif
|