mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 00:57:36 +00:00
RequestServer+LibTLS: Allow applications to specify multiple root certs
This commit is contained in:
parent
49467c6ec2
commit
080aa567a5
8 changed files with 41 additions and 26 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue