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

Unified Diff: net/quic/crypto/proof_verifier_chromium.cc

Issue 2016143002: Expose when PKP is bypassed in SSLInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: optional nits 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
Index: net/quic/crypto/proof_verifier_chromium.cc
diff --git a/net/quic/crypto/proof_verifier_chromium.cc b/net/quic/crypto/proof_verifier_chromium.cc
index eb5f20ae70d74a1d1ac194b7e95eba770a4d0136..529570af035963d78dbc15aacf4f000dccb84a61 100644
--- a/net/quic/crypto/proof_verifier_chromium.cc
+++ b/net/quic/crypto/proof_verifier_chromium.cc
@@ -335,7 +335,10 @@ int ProofVerifierChromium::Job::DoVerifyCertComplete(int result) {
cert_verify_result.verified_cert.get(),
TransportSecurityState::ENABLE_PIN_REPORTS,
&verify_details_->pinning_failure_log)) {
- result = ERR_SSL_PINNED_KEY_NOT_IN_CERT_CHAIN;
+ if (cert_verify_result.is_issued_by_known_root)
+ result = ERR_SSL_PINNED_KEY_NOT_IN_CERT_CHAIN;
+ else
+ verify_details_->cert_verify_result.pkp_bypassed = true;
}
if (result != OK) {

Powered by Google App Engine
This is Rietveld 408576698