LibTLS+Everywhere: Switch to using WolfSSL

This commit replaces all TLS connection code with wolfssl.
The certificate parsing code has to remain for now, as wolfssl does not
seem to have any exposed API for that.
This commit is contained in:
Ali Mohammad Pur 2024-07-01 17:11:35 +02:00 committed by Ali Mohammad Pur
parent 82915e1914
commit 8bb610b97a
Notes: sideshowbarker 2024-07-16 23:57:20 +09:00
28 changed files with 197 additions and 3977 deletions

View file

@ -31,8 +31,7 @@ ErrorOr<ByteString> find_certificates(StringView serenity_resource_root)
ErrorOr<int> service_main(int ipc_socket)
{
// Ensure the certificates are read out here.
DefaultRootCACertificates::set_default_certificate_paths(Vector { TRY(find_certificates(s_serenity_resource_root)) });
[[maybe_unused]] auto& certs = DefaultRootCACertificates::the();
TLS::WolfTLS::install_certificate_store_paths({ TRY(find_certificates(s_serenity_resource_root)) });
Core::EventLoop event_loop;