From f7f09b028bf0c8358990da714df1953b55ecfd9a Mon Sep 17 00:00:00 2001 From: deepak1556 Date: Fri, 26 Oct 2018 02:03:47 +0530 Subject: [PATCH] Introduce explicit configuration to CertVerifier https://chromium-review.googlesource.com/c/chromium/src/+/1122709 --- atom/browser/net/atom_cert_verifier.cc | 4 ++++ atom/browser/net/atom_cert_verifier.h | 1 + 2 files changed, 5 insertions(+) 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;