mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
LibTLS: Rename Version to ProtocolVersion
This matches the wording used in the TLS RFC Also define GREASE values as specified in RFC8701
This commit is contained in:
parent
082e64e167
commit
ca6b8bfe7f
Notes:
sideshowbarker
2024-07-17 08:35:21 +09:00
Author: https://github.com/stelar7
Commit: ca6b8bfe7f
Pull-request: https://github.com/SerenityOS/serenity/pull/18356
Reviewed-by: https://github.com/alimpfard ✅
5 changed files with 33 additions and 14 deletions
|
@ -169,7 +169,7 @@ void TLSv12::build_rsa_pre_master_secret(PacketBuilder& builder)
|
|||
dbgln("Server mode not supported");
|
||||
return;
|
||||
} else {
|
||||
*(u16*)random_bytes = AK::convert_between_host_and_network_endian((u16)Version::V12);
|
||||
*(u16*)random_bytes = AK::convert_between_host_and_network_endian((u16)ProtocolVersion::VERSION_1_2);
|
||||
}
|
||||
|
||||
auto premaster_key_result = ByteBuffer::copy(random_bytes, bytes);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue