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

Side by Side Diff: net/quic/quic_crypto_client_stream.cc

Issue 1780983002: Provide valid port on HPKP reports for QUIC connections (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix missed tests Created 4 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/quic/quic_crypto_client_stream.h" 5 #include "net/quic/quic_crypto_client_stream.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/metrics/histogram_macros.h" 9 #include "base/metrics/histogram_macros.h"
10 #include "base/metrics/sparse_histogram.h" 10 #include "base/metrics/sparse_histogram.h"
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 DCHECK(verifier); 452 DCHECK(verifier);
453 next_state_ = STATE_VERIFY_PROOF_COMPLETE; 453 next_state_ = STATE_VERIFY_PROOF_COMPLETE;
454 generation_counter_ = cached->generation_counter(); 454 generation_counter_ = cached->generation_counter();
455 455
456 ProofVerifierCallbackImpl* proof_verify_callback = 456 ProofVerifierCallbackImpl* proof_verify_callback =
457 new ProofVerifierCallbackImpl(this); 457 new ProofVerifierCallbackImpl(this);
458 458
459 verify_ok_ = false; 459 verify_ok_ = false;
460 460
461 QuicAsyncStatus status = verifier->VerifyProof( 461 QuicAsyncStatus status = verifier->VerifyProof(
462 server_id_.host(), cached->server_config(), cached->certs(), 462 server_id_.host(), server_id_.port(), cached->server_config(),
463 cached->cert_sct(), cached->signature(), verify_context_.get(), 463 cached->certs(), cached->cert_sct(), cached->signature(),
464 &verify_error_details_, &verify_details_, proof_verify_callback); 464 verify_context_.get(), &verify_error_details_, &verify_details_,
465 proof_verify_callback);
465 466
466 switch (status) { 467 switch (status) {
467 case QUIC_PENDING: 468 case QUIC_PENDING:
468 proof_verify_callback_ = proof_verify_callback; 469 proof_verify_callback_ = proof_verify_callback;
469 DVLOG(1) << "Doing VerifyProof"; 470 DVLOG(1) << "Doing VerifyProof";
470 break; 471 break;
471 case QUIC_FAILURE: 472 case QUIC_FAILURE:
472 delete proof_verify_callback; 473 delete proof_verify_callback;
473 break; 474 break;
474 case QUIC_SUCCESS: 475 case QUIC_SUCCESS:
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 } 672 }
672 for (size_t i = 0; i < num_their_proof_demands; i++) { 673 for (size_t i = 0; i < num_their_proof_demands; i++) {
673 if (their_proof_demands[i] == kCHID) { 674 if (their_proof_demands[i] == kCHID) {
674 return true; 675 return true;
675 } 676 }
676 } 677 }
677 return false; 678 return false;
678 } 679 }
679 680
680 } // namespace net 681 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698