diff --git a/atom/browser/net/atom_cert_verifier.cc b/atom/browser/net/atom_cert_verifier.cc index 1ff8e10ae3dc..0d8dc25f48dc 100644 --- a/atom/browser/net/atom_cert_verifier.cc +++ b/atom/browser/net/atom_cert_verifier.cc @@ -186,6 +186,10 @@ int AtomCertVerifier::Verify(const RequestParams& params, } } +void AtomCertVerifier::SetConfig(const Config& config) { + default_cert_verifier_->SetConfig(config); +} + void AtomCertVerifier::RemoveRequest(const RequestParams& params) { auto it = inflight_requests_.find(params); if (it != inflight_requests_.end()) diff --git a/atom/browser/net/atom_cert_verifier.h b/atom/browser/net/atom_cert_verifier.h index 4ac8ff0873e1..676fe353f740 100644 --- a/atom/browser/net/atom_cert_verifier.h +++ b/atom/browser/net/atom_cert_verifier.h @@ -50,6 +50,7 @@ class AtomCertVerifier : public net::CertVerifier { net::CompletionOnceCallback callback, std::unique_ptr* out_req, const net::NetLogWithSource& net_log) override; + void SetConfig(const Config& config) override; private: friend class CertVerifierRequest;