mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:07:34 +00:00
LibTLS: Move ECPointFormat to Extensions.h
Also add missing values from the IANA registry
This commit is contained in:
parent
a4855aef17
commit
e5f81475e5
3 changed files with 11 additions and 5 deletions
|
@ -247,6 +247,16 @@ enum class SupportedGroup : u16 {
|
|||
__ENUM_SUPPORTED_GROUPS
|
||||
};
|
||||
|
||||
// https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#tls-parameters-9
|
||||
#define __ENUM_EC_POINT_FORMATS \
|
||||
_ENUM_KEY_VALUE(UNCOMPRESSED, 0) \
|
||||
_ENUM_KEY_VALUE(ANSIX962_COMPRESSED_PRIME, 1) \
|
||||
_ENUM_KEY_VALUE(ANSIX962_COMPRESSED_CHAR2, 2)
|
||||
|
||||
enum class ECPointFormat : u8 {
|
||||
__ENUM_EC_POINT_FORMATS
|
||||
};
|
||||
|
||||
#undef _ENUM_KEY
|
||||
#undef _ENUM_KEY_VALUE
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue