mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:27:35 +00:00
LibTLS: Move SignatureAlgorithm to Extensions.h
Also add missing values from the IANA registry
This commit is contained in:
parent
e5f81475e5
commit
fba7695dcc
2 changed files with 17 additions and 9 deletions
|
@ -257,6 +257,21 @@ enum class ECPointFormat : u8 {
|
|||
__ENUM_EC_POINT_FORMATS
|
||||
};
|
||||
|
||||
// https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#tls-parameters-16
|
||||
#define __ENUM_SIGNATURE_ALGORITHM \
|
||||
_ENUM_KEY_VALUE(ANONYMOUS, 0) \
|
||||
_ENUM_KEY_VALUE(RSA, 1) \
|
||||
_ENUM_KEY_VALUE(DSA, 2) \
|
||||
_ENUM_KEY_VALUE(ECDSA, 3) \
|
||||
_ENUM_KEY_VALUE(ED25519, 7) \
|
||||
_ENUM_KEY_VALUE(ED448, 8) \
|
||||
_ENUM_KEY_VALUE(GOSTR34102012_256, 64) \
|
||||
_ENUM_KEY_VALUE(GOSTR34102012_512, 65)
|
||||
|
||||
enum class SignatureAlgorithm : u8 {
|
||||
__ENUM_SIGNATURE_ALGORITHM
|
||||
};
|
||||
|
||||
#undef _ENUM_KEY
|
||||
#undef _ENUM_KEY_VALUE
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue