mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 00:31:14 +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
Notes:
sideshowbarker
2024-07-17 08:38:37 +09:00
Author: https://github.com/stelar7 Commit: https://github.com/SerenityOS/serenity/commit/e5f81475e5 Pull-request: https://github.com/SerenityOS/serenity/pull/18356 Reviewed-by: https://github.com/alimpfard ✅
|
@ -189,8 +189,4 @@ constexpr size_t cipher_key_size(CipherAlgorithm algorithm)
|
|||
}
|
||||
}
|
||||
|
||||
enum class ECPointFormat : u8 {
|
||||
Uncompressed = 0,
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -215,7 +215,7 @@ struct Options {
|
|||
SupportedGroup::X25519,
|
||||
SupportedGroup::SECP256R1,
|
||||
SupportedGroup::X448)
|
||||
OPTION_WITH_DEFAULTS(Vector<ECPointFormat>, supported_ec_point_formats, ECPointFormat::Uncompressed)
|
||||
OPTION_WITH_DEFAULTS(Vector<ECPointFormat>, supported_ec_point_formats, ECPointFormat::UNCOMPRESSED)
|
||||
|
||||
OPTION_WITH_DEFAULTS(bool, use_sni, true)
|
||||
OPTION_WITH_DEFAULTS(bool, use_compression, false)
|
||||
|
|
Loading…
Reference in a new issue