Botan  1.10.9
pubkey_enums.h
Go to the documentation of this file.
1 /*
2 * Enumerations
3 * (C) 1999-2007 Jack Lloyd
4 *
5 * Distributed under the terms of the Botan license
6 */
7 
8 #ifndef BOTAN_ENUMS_H__
9 #define BOTAN_ENUMS_H__
10 
11 #include <botan/ber_dec.h>
12 
13 namespace Botan {
14 
15 /**
16 * X.509v3 Key Constraints.
17 */
21  NON_REPUDIATION = 16384,
24  KEY_AGREEMENT = 2048,
25  KEY_CERT_SIGN = 1024,
26  CRL_SIGN = 512,
29 };
30 
31 /**
32 * BER Decoding Function for key constraints
33 */
34 namespace BER {
35 
36 void BOTAN_DLL decode(BER_Decoder&, Key_Constraints&);
37 
38 }
39 
40 /**
41 * X.509v2 CRL Reason Code.
42 */
43 enum CRL_Code {
54 
55  DELETE_CRL_ENTRY = 0xFF00,
56  OCSP_GOOD = 0xFF01,
57  OCSP_UNKNOWN = 0xFF02
58 };
59 
60 /*
61 * Various Other Enumerations
62 */
63 
64 /**
65 * The two types of X509 encoding supported by Botan.
66 */
68 
69 }
70 
71 #endif
X509_Encoding
Definition: pubkey_enums.h:67
void decode(BER_Decoder &source, Key_Constraints &key_usage)
Key_Constraints
Definition: pubkey_enums.h:18