mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:07:36 +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
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue