mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +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
|
@ -46,8 +46,7 @@ void WebSocketImplSerenity::connect(ConnectionInfo const& connection_info)
|
|||
auto host = connection_info.url().serialized_host().to_byte_string();
|
||||
if (connection_info.is_secure()) {
|
||||
TLS::Options options;
|
||||
options.set_root_certificates_path(connection_info.root_certificates_path());
|
||||
options.set_blocking(false);
|
||||
options.root_certificates_path = connection_info.root_certificates_path();
|
||||
|
||||
return TRY(Core::BufferedSocket<TLS::TLSv12>::create(
|
||||
TRY(TLS::TLSv12::connect(host, connection_info.url().port_or_default(), move(options)))));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue