LibWebSocket: Support specifying root certificate path

This commit is contained in:
devgianlu 2025-02-14 12:24:03 +01:00 committed by Ali Mohammad Pur
commit 24d3da64e5
Notes: github-actions[bot] 2025-02-17 18:53:40 +00:00
4 changed files with 22 additions and 4 deletions

View file

@ -30,6 +30,9 @@ public:
HTTP::HeaderMap const& headers() const { return m_headers; }
void set_headers(HTTP::HeaderMap headers) { m_headers = move(headers); }
Optional<ByteString> const& root_certificates_path() const { return m_root_certificates_path; }
void set_root_certificates_path(Optional<ByteString> root_certificates_path) { m_root_certificates_path = move(root_certificates_path); }
// secure flag - defined in RFC 6455 Section 3
bool is_secure() const;
@ -42,6 +45,7 @@ private:
Vector<ByteString> m_protocols {};
Vector<ByteString> m_extensions {};
HTTP::HeaderMap m_headers;
Optional<ByteString> m_root_certificates_path;
};
}