Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(954)

Unified Diff: blimp/net/exact_match_cert_verifier.cc

Issue 1994353002: Update CertVerifier::Verify to use RequestParams instead (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@request_params
Patch Set: Rebased Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « blimp/net/exact_match_cert_verifier.h ('k') | chrome/browser/chromeos/policy/policy_cert_verifier.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/net/exact_match_cert_verifier.cc
diff --git a/blimp/net/exact_match_cert_verifier.cc b/blimp/net/exact_match_cert_verifier.cc
index 84d1ae75c771add889a3a114c59fefc55b4e32b8..07a569f47d83be8a0780dd93a1bcfe9217aeee31 100644
--- a/blimp/net/exact_match_cert_verifier.cc
+++ b/blimp/net/exact_match_cert_verifier.cc
@@ -33,10 +33,7 @@ ExactMatchCertVerifier::ExactMatchCertVerifier(
ExactMatchCertVerifier::~ExactMatchCertVerifier() {}
-int ExactMatchCertVerifier::Verify(net::X509Certificate* cert,
- const std::string& hostname,
- const std::string& ocsp_response,
- int flags,
+int ExactMatchCertVerifier::Verify(const RequestParams& params,
net::CRLSet* crl_set,
net::CertVerifyResult* verify_result,
const net::CompletionCallback& callback,
@@ -45,7 +42,7 @@ int ExactMatchCertVerifier::Verify(net::X509Certificate* cert,
verify_result->Reset();
verify_result->verified_cert = engine_cert_;
- if (!cert->Equals(engine_cert_.get())) {
+ if (!params.certificate()->Equals(engine_cert_.get())) {
verify_result->cert_status = net::CERT_STATUS_INVALID;
return net::ERR_CERT_INVALID;
}
« no previous file with comments | « blimp/net/exact_match_cert_verifier.h ('k') | chrome/browser/chromeos/policy/policy_cert_verifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698