1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 13:37:44 +00:00

LibTLS: Move TLS extensions to a separate 'extensions' struct

This has no behavioural effect.
This commit is contained in:
AnotherTest 2021-02-07 07:19:34 +03:30 committed by Andreas Kling
parent 22d13d8b1a
commit d6d6750dd8
4 changed files with 12 additions and 9 deletions

View file

@ -242,7 +242,10 @@ struct Context {
bool is_child { false };
String SNI; // I hate your existence
struct {
// Server Name Indicator
String SNI; // I hate your existence
} extensions;
u8 request_client_certificate { 0 };
@ -278,7 +281,7 @@ public:
dbgln("invalid state for set_sni");
return;
}
m_context.SNI = sni;
m_context.extensions.SNI = sni;
}
Optional<Certificate> parse_asn1(ReadonlyBytes, bool client_cert = false) const;