1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 09:18:11 +00:00

LibProtocol+LibGemini+LibHTTP: Provide root certificates to LibTLS

Now we (almost) verify all the sites we browse.
Certificate verification failures should not be unexpected, as the
existing CA certificates are likely not complete.
This commit is contained in:
AnotherTest 2020-10-30 11:57:32 +03:30 committed by Andreas Kling
parent 37c089fb7b
commit 812e3ecedd
5 changed files with 13 additions and 2 deletions

View file

@ -37,8 +37,9 @@ namespace Gemini {
class GeminiJob final : public Job {
C_OBJECT(GeminiJob)
public:
explicit GeminiJob(const GeminiRequest& request)
explicit GeminiJob(const GeminiRequest& request, const Vector<Certificate>* override_certificates = nullptr)
: Job(request)
, m_override_ca_certificates(override_certificates)
{
}
@ -67,6 +68,7 @@ protected:
private:
RefPtr<TLS::TLSv12> m_socket;
const Vector<Certificate>* m_override_ca_certificates { nullptr };
};
}