1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:07:35 +00:00

LibTLS: Make the TLS connection options user-configurable

The user may now request specific cipher suites, the use of SNI, and
whether we should validate certificates (not that we're doing a good job
of that).
This commit is contained in:
AnotherTest 2021-02-07 07:21:32 +03:30 committed by Andreas Kling
parent b5f24c84e4
commit 2020176f0f
7 changed files with 60 additions and 29 deletions

View file

@ -83,7 +83,7 @@ bool TLSv12::write(ReadonlyBytes buffer)
return false;
}
PacketBuilder builder { MessageType::ApplicationData, m_context.version, buffer.size() };
PacketBuilder builder { MessageType::ApplicationData, m_context.options.version, buffer.size() };
builder.append(buffer);
auto packet = builder.build();