mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17:35 +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
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