diff options
author | AnotherTest <ali.mpfard@gmail.com> | 2021-02-07 07:19:34 +0330 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-03 11:22:01 +0200 |
commit | d6d6750dd81be115c24f38f395c82e3c84d66aaa (patch) | |
tree | ea482d038ae3545fc3e6068e13e273898d6012e0 /Userland/Libraries/LibTLS/TLSv12.h | |
parent | 22d13d8b1abb7210fe4091c23eb0013e64e02d96 (diff) | |
download | serenity-d6d6750dd81be115c24f38f395c82e3c84d66aaa.zip |
LibTLS: Move TLS extensions to a separate 'extensions' struct
This has no behavioural effect.
Diffstat (limited to 'Userland/Libraries/LibTLS/TLSv12.h')
-rw-r--r-- | Userland/Libraries/LibTLS/TLSv12.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Userland/Libraries/LibTLS/TLSv12.h b/Userland/Libraries/LibTLS/TLSv12.h index 52ee2862cd..6633cedf87 100644 --- a/Userland/Libraries/LibTLS/TLSv12.h +++ b/Userland/Libraries/LibTLS/TLSv12.h @@ -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; |