mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 17:38:12 +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
|
@ -163,8 +163,8 @@ ssize_t TLSv12::handle_hello(ReadonlyBytes buffer, WritePacketStage& write_packe
|
|||
}
|
||||
|
||||
if (sni_host_length) {
|
||||
m_context.SNI = String { (const char*)buffer.offset_pointer(res + 5), sni_host_length };
|
||||
dbgln("server name indicator: {}", m_context.SNI);
|
||||
m_context.extensions.SNI = String { (const char*)buffer.offset_pointer(res + 5), sni_host_length };
|
||||
dbgln("server name indicator: {}", m_context.extensions.SNI);
|
||||
}
|
||||
} else if (extension_type == HandshakeExtension::ApplicationLayerProtocolNegotiation && m_context.alpn.size()) {
|
||||
if (buffer.size() - res > 2) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue