1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 11: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:
stelar7 2023-04-13 23:53:22 +02:00 committed by Sam Atkins
parent 082e64e167
commit ca6b8bfe7f
5 changed files with 33 additions and 14 deletions

View file

@ -240,7 +240,7 @@ struct Options {
return move(*this); \
}
OPTION_WITH_DEFAULTS(Version, version, Version::V12)
OPTION_WITH_DEFAULTS(ProtocolVersion, version, ProtocolVersion::VERSION_1_2)
OPTION_WITH_DEFAULTS(Vector<SignatureAndHashAlgorithm>, supported_signature_algorithms,
{ HashAlgorithm::SHA512, SignatureAlgorithm::RSA },
{ HashAlgorithm::SHA384, SignatureAlgorithm::RSA },
@ -419,9 +419,9 @@ public:
}
}
bool supports_version(Version v) const
bool supports_version(ProtocolVersion v) const
{
return v == Version::V12;
return v == ProtocolVersion::VERSION_1_2;
}
void alert(AlertLevel, AlertDescription);