Introduce explicit configuration to CertVerifier
https://chromium-review.googlesource.com/c/chromium/src/+/1122709
This commit is contained in:
parent
089001bd92
commit
f7f09b028b
2 changed files with 5 additions and 0 deletions
|
@ -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) {
|
void AtomCertVerifier::RemoveRequest(const RequestParams& params) {
|
||||||
auto it = inflight_requests_.find(params);
|
auto it = inflight_requests_.find(params);
|
||||||
if (it != inflight_requests_.end())
|
if (it != inflight_requests_.end())
|
||||||
|
|
|
@ -50,6 +50,7 @@ class AtomCertVerifier : public net::CertVerifier {
|
||||||
net::CompletionOnceCallback callback,
|
net::CompletionOnceCallback callback,
|
||||||
std::unique_ptr<Request>* out_req,
|
std::unique_ptr<Request>* out_req,
|
||||||
const net::NetLogWithSource& net_log) override;
|
const net::NetLogWithSource& net_log) override;
|
||||||
|
void SetConfig(const Config& config) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend class CertVerifierRequest;
|
friend class CertVerifierRequest;
|
||||||
|
|
Loading…
Reference in a new issue