mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:17:36 +00:00
LibTLS: Move HashAlgorithm to Extensions.h
Also add missing values from the IANA registry
This commit is contained in:
parent
fba7695dcc
commit
da8edece29
2 changed files with 15 additions and 11 deletions
|
@ -272,6 +272,21 @@ enum class SignatureAlgorithm : u8 {
|
|||
__ENUM_SIGNATURE_ALGORITHM
|
||||
};
|
||||
|
||||
// https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#tls-parameters-18
|
||||
#define __ENUM_HASH_ALGORITHM \
|
||||
_ENUM_KEY_VALUE(NONE, 0) \
|
||||
_ENUM_KEY_VALUE(MD5, 1) \
|
||||
_ENUM_KEY_VALUE(SHA1, 2) \
|
||||
_ENUM_KEY_VALUE(SHA224, 3) \
|
||||
_ENUM_KEY_VALUE(SHA256, 4) \
|
||||
_ENUM_KEY_VALUE(SHA384, 5) \
|
||||
_ENUM_KEY_VALUE(SHA512, 6) \
|
||||
_ENUM_KEY_VALUE(INTRINSIC, 8)
|
||||
|
||||
enum class HashAlgorithm : u8 {
|
||||
__ENUM_HASH_ALGORITHM
|
||||
};
|
||||
|
||||
#undef _ENUM_KEY
|
||||
#undef _ENUM_KEY_VALUE
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue