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

Unified Diff: chrome/browser/chromeos/policy/policy_cert_verifier.cc

Issue 1081913003: Route OCSP stapling through CertVerifier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@boringnss
Patch Set: yet another CrOS-only Verify call Created 5 years, 8 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
Index: chrome/browser/chromeos/policy/policy_cert_verifier.cc
diff --git a/chrome/browser/chromeos/policy/policy_cert_verifier.cc b/chrome/browser/chromeos/policy/policy_cert_verifier.cc
index cca86b069186187da1a17d331a6a48f42a552b98..d3abda8e4c21d532eb5e7b1c54086b9742eeb00c 100644
--- a/chrome/browser/chromeos/policy/policy_cert_verifier.cc
+++ b/chrome/browser/chromeos/policy/policy_cert_verifier.cc
@@ -71,6 +71,7 @@ void PolicyCertVerifier::SetTrustAnchors(
int PolicyCertVerifier::Verify(
net::X509Certificate* cert,
const std::string& hostname,
+ const std::string& ocsp_response,
int flags,
net::CRLSet* crl_set,
net::CertVerifyResult* verify_result,
@@ -84,8 +85,9 @@ int PolicyCertVerifier::Verify(
anchor_used_callback_,
completion_callback,
verify_result);
- int error = delegate_->Verify(cert, hostname, flags, crl_set, verify_result,
- wrapped_callback, out_req, net_log);
+ int error =
+ delegate_->Verify(cert, hostname, ocsp_response, flags, crl_set,
+ verify_result, wrapped_callback, out_req, net_log);
MaybeSignalAnchorUse(error, anchor_used_callback_, *verify_result);
return error;
}
@@ -95,6 +97,11 @@ void PolicyCertVerifier::CancelRequest(RequestHandle req) {
delegate_->CancelRequest(req);
}
+bool PolicyCertVerifier::SupportsOCSPStapling() {
+ DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO));
+ return delegate_->SupportsOCSPStapling();
+}
+
const net::CertificateList& PolicyCertVerifier::GetAdditionalTrustAnchors() {
DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO));
return trust_anchors_;

Powered by Google App Engine
This is Rietveld 408576698