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:
Andrew Kaster 2025-06-22 14:38:25 -06:00 committed by Ali Mohammad Pur
commit d9c85288d9
Notes: github-actions[bot] 2025-06-23 15:50:30 +00:00
7 changed files with 7 additions and 31 deletions

View file

@ -42,8 +42,7 @@ TEST_CASE(test_TLS_hello_handshake)
Core::EventLoop loop;
TLS::Options options;
options.blocking = false;
options.set_root_certificates_path(locate_ca_certs_file());
options.root_certificates_path = locate_ca_certs_file();
auto tls = TRY_OR_FAIL(Core::BufferedSocket<TLS::TLSv12>::create(TRY_OR_FAIL(TLS::TLSv12::connect(DEFAULT_SERVER, port, move(options)))));