diff options
author | lloyd <[email protected]> | 2008-10-13 19:06:17 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-10-13 19:06:17 +0000 |
commit | 039d14df85daa8ecfedc5ee4b15498a7b98b5798 (patch) | |
tree | 90ae53bad36600314d4385d1c3ab5f0a687b700d /src | |
parent | 3a9959235085afa546b424b75850dd21e60201a4 (diff) |
Doxygen comments for enums.h
Diffstat (limited to 'src')
-rw-r--r-- | src/core/enums.h | 33 |
1 files changed, 27 insertions, 6 deletions
diff --git a/src/core/enums.h b/src/core/enums.h index e083cdc01..f86c0105d 100644 --- a/src/core/enums.h +++ b/src/core/enums.h @@ -10,9 +10,9 @@ namespace Botan { -/************************************************* -* X.509v3 Key Constraints * -*************************************************/ +/** +* X.509v3 Key Constraints. +*/ enum Key_Constraints { NO_CONSTRAINTS = 0, DIGITAL_SIGNATURE = 32768, @@ -26,9 +26,9 @@ enum Key_Constraints { DECIPHER_ONLY = 128 }; -/************************************************* -* X.509v2 CRL Reason Code * -*************************************************/ +/** +* X.509v2 CRL Reason Code. +*/ enum CRL_Code { UNSPECIFIED = 0, KEY_COMPROMISE = 1, @@ -49,12 +49,29 @@ enum CRL_Code { /************************************************* * Various Other Enumerations * *************************************************/ + +/** +* The type of checking to be performed: +* NONE - no checks, IGNORE_WS - perform checks, but ignore +* whitespaces, FULL_CHECK - perform checks, also complain +* about white spaces. +*/ enum Decoder_Checking { NONE, IGNORE_WS, FULL_CHECK }; +/** +* The two types of X509 encoding supported by Botan. +*/ enum X509_Encoding { RAW_BER, PEM }; +/** +* The two possible directions for cipher filters, determining whether they +* actually perform encryption or decryption. +*/ enum Cipher_Dir { ENCRYPTION, DECRYPTION }; +/** +* The different charsets supported by Botan. +*/ enum Character_Set { LOCAL_CHARSET, UCS2_CHARSET, @@ -62,6 +79,10 @@ enum Character_Set { LATIN1_CHARSET }; +/** +* Value to encode in case of no path limit in the X509 +* BasicConstraints extension. +*/ static const u32bit NO_CERT_PATH_LIMIT = 0xFFFFFFF0; } |