mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:07:34 +00:00
LibTLS: Move ECCurveType to Extensions.h
Also add missing values from the IANA registry
This commit is contained in:
parent
0fea6e7f13
commit
6df3ffaf45
3 changed files with 11 additions and 5 deletions
|
@ -166,6 +166,16 @@ enum class NameType : u8 {
|
|||
__ENUM_NAME_TYPES
|
||||
};
|
||||
|
||||
// https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#tls-parameters-10
|
||||
#define __ENUM_EC_CURVE_TYPES \
|
||||
_ENUM_KEY_VALUE(EXPLICIT_PRIME, 1) \
|
||||
_ENUM_KEY_VALUE(EXPLICIT_CHAR2, 2) \
|
||||
_ENUM_KEY_VALUE(NAMED_CURVE, 3)
|
||||
|
||||
enum class ECCurveType : u8 {
|
||||
__ENUM_EC_CURVE_TYPES
|
||||
};
|
||||
|
||||
#undef _ENUM_KEY
|
||||
#undef _ENUM_KEY_VALUE
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue