mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 18:19:03 +00:00
LibTLS: Remove blocking option and simplify Options struct
The complex macro for options with defaults doesn't make sense now that there's only one option.
This commit is contained in:
parent
955d747431
commit
d9c85288d9
Notes:
github-actions[bot]
2025-06-23 15:50:30 +00:00
Author: https://github.com/ADKaster
Commit: d9c85288d9
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5173
Reviewed-by: https://github.com/alimpfard ✅
7 changed files with 7 additions and 31 deletions
|
@ -202,7 +202,7 @@ TLSv12::~TLSv12()
|
|||
|
||||
ErrorOr<NonnullOwnPtr<TLSv12>> TLSv12::connect_internal(NonnullOwnPtr<Core::TCPSocket> socket, ByteString const& host, Options options)
|
||||
{
|
||||
TRY(socket->set_blocking(options.blocking));
|
||||
TRY(socket->set_blocking(false));
|
||||
|
||||
auto* ssl_ctx = OPENSSL_TRY_PTR(SSL_CTX_new(TLS_client_method()));
|
||||
ArmedScopeGuard free_ssl_ctx = [&] { SSL_CTX_free(ssl_ctx); };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue