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 b6ce232fd6d24676911bd9c4fd92d660853dc6b8..c2d8e0e9249373d58b3d9418cc65031956e15cc7 100644 |
--- a/net/quic/crypto/proof_verifier_chromium.cc |
+++ b/net/quic/crypto/proof_verifier_chromium.cc |
@@ -237,13 +237,16 @@ int ProofVerifierChromium::Job::DoVerifyCertComplete(int result) { |
const CertVerifyResult& cert_verify_result = |
verify_details_->cert_verify_result; |
const CertStatus cert_status = cert_verify_result.cert_status; |
+ // TODO(estark): replace 0 below with the port that the connection was |
+ // made on. |
if (transport_security_state_ && |
(result == OK || |
(IsCertificateError(result) && IsCertStatusMinorError(cert_status))) && |
!transport_security_state_->CheckPublicKeyPins( |
- hostname_, |
- cert_verify_result.is_issued_by_known_root, |
- cert_verify_result.public_key_hashes, |
+ hostname_, cert_verify_result.is_issued_by_known_root, |
+ cert_verify_result.public_key_hashes, 0, cert_, |
+ cert_verify_result.verified_cert, |
+ TransportSecurityState::SEND_PUBLIC_KEY_PIN_REPORT, |
&verify_details_->pinning_failure_log)) { |
result = ERR_SSL_PINNED_KEY_NOT_IN_CERT_CHAIN; |
} |