RequestServer+LibTLS: Allow applications to specify multiple root certs

This commit is contained in:
Andrew Kaster 2024-02-05 09:34:51 -07:00 committed by Andrew Kaster
commit 080aa567a5
Notes: sideshowbarker 2024-07-16 22:22:13 +09:00
8 changed files with 41 additions and 26 deletions

View file

@ -292,11 +292,11 @@ public:
Vector<Certificate> const& certificates() const { return m_ca_certificates; }
static ErrorOr<Vector<Certificate>> parse_pem_root_certificate_authorities(ByteBuffer&);
static ErrorOr<Vector<Certificate>> load_certificates(StringView custom_cert_path = {});
static ErrorOr<Vector<Certificate>> load_certificates(Span<ByteString> custom_cert_paths = {});
static DefaultRootCACertificates& the();
static void set_default_certificate_path(String);
static void set_default_certificate_paths(Span<ByteString> paths);
private:
Vector<Certificate> m_ca_certificates;