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:
parent
22d13d8b1a
commit
d6d6750dd8
4 changed files with 12 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue