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

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: Correct ordering of arguments in test 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 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 DCHECK(verifier); 456 DCHECK(verifier);
457 next_state_ = STATE_VERIFY_PROOF_COMPLETE; 457 next_state_ = STATE_VERIFY_PROOF_COMPLETE;
458 generation_counter_ = cached->generation_counter(); 458 generation_counter_ = cached->generation_counter();
459 459
460 ProofVerifierCallbackImpl* proof_verify_callback = 460 ProofVerifierCallbackImpl* proof_verify_callback =
461 new ProofVerifierCallbackImpl(this); 461 new ProofVerifierCallbackImpl(this);
462 462
463 verify_ok_ = false; 463 verify_ok_ = false;
464 464
465 QuicAsyncStatus status = verifier->VerifyProof( 465 QuicAsyncStatus status = verifier->VerifyProof(
466 server_id_.host(), cached->server_config(), 466 server_id_.host(), server_id_.port(), cached->server_config(),
467 session()->connection()->version(), chlo_hash_, cached->certs(), 467 session()->connection()->version(), chlo_hash_, cached->certs(),
468 cached->cert_sct(), cached->signature(), verify_context_.get(), 468 cached->cert_sct(), cached->signature(), verify_context_.get(),
469 &verify_error_details_, &verify_details_, proof_verify_callback); 469 &verify_error_details_, &verify_details_, proof_verify_callback);
470 470
471 switch (status) { 471 switch (status) {
472 case QUIC_PENDING: 472 case QUIC_PENDING:
473 proof_verify_callback_ = proof_verify_callback; 473 proof_verify_callback_ = proof_verify_callback;
474 DVLOG(1) << "Doing VerifyProof"; 474 DVLOG(1) << "Doing VerifyProof";
475 break; 475 break;
476 case QUIC_FAILURE: 476 case QUIC_FAILURE:
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
676 } 676 }
677 for (size_t i = 0; i < num_their_proof_demands; i++) { 677 for (size_t i = 0; i < num_their_proof_demands; i++) {
678 if (their_proof_demands[i] == kCHID) { 678 if (their_proof_demands[i] == kCHID) {
679 return true; 679 return true;
680 } 680 }
681 } 681 }
682 return false; 682 return false;
683 } 683 }
684 684
685 } // namespace net 685 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/crypto/proof_verifier_chromium_test.cc ('k') | net/quic/test_tools/crypto_test_utils_chromium.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698