1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:57:35 +00:00

LibTLS: Allow applications to provide a custom default CA Cert path

On Lagom, we also need to allow the initial load of /etc/cacert.pem to
fail.
This commit is contained in:
Andrew Kaster 2023-08-01 14:43:21 -06:00 committed by Andreas Kling
parent 5062ba347b
commit 28d3d3c9fc
2 changed files with 25 additions and 5 deletions

View file

@ -292,10 +292,12 @@ 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();
static ErrorOr<Vector<Certificate>> load_certificates(StringView custom_cert_path = {});
static DefaultRootCACertificates& the();
static void set_default_certificate_path(String);
private:
Vector<Certificate> m_ca_certificates;
};