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

Side by Side Diff: net/quic/crypto/proof_verifier_chromium.cc

Issue 1753933002: Add QUIC 31 in which the server's proof covers both the static server config as well as a hash of t… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@115244730
Patch Set: 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/crypto/proof_verifier_chromium.h" 5 #include "net/quic/crypto/proof_verifier_chromium.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 transport_security_state_(transport_security_state), 424 transport_security_state_(transport_security_state),
425 cert_transparency_verifier_(cert_transparency_verifier) {} 425 cert_transparency_verifier_(cert_transparency_verifier) {}
426 426
427 ProofVerifierChromium::~ProofVerifierChromium() { 427 ProofVerifierChromium::~ProofVerifierChromium() {
428 STLDeleteElements(&active_jobs_); 428 STLDeleteElements(&active_jobs_);
429 } 429 }
430 430
431 QuicAsyncStatus ProofVerifierChromium::VerifyProof( 431 QuicAsyncStatus ProofVerifierChromium::VerifyProof(
432 const std::string& hostname, 432 const std::string& hostname,
433 const std::string& server_config, 433 const std::string& server_config,
434 QuicVersion quic_version,
435 base::StringPiece chlo_hash,
434 const std::vector<std::string>& certs, 436 const std::vector<std::string>& certs,
435 const std::string& cert_sct, 437 const std::string& cert_sct,
436 const std::string& signature, 438 const std::string& signature,
437 const ProofVerifyContext* verify_context, 439 const ProofVerifyContext* verify_context,
438 std::string* error_details, 440 std::string* error_details,
439 scoped_ptr<ProofVerifyDetails>* verify_details, 441 scoped_ptr<ProofVerifyDetails>* verify_details,
440 ProofVerifierCallback* callback) { 442 ProofVerifierCallback* callback) {
441 if (!verify_context) { 443 if (!verify_context) {
442 *error_details = "Missing context"; 444 *error_details = "Missing context";
443 return QUIC_FAILURE; 445 return QUIC_FAILURE;
(...skipping 12 matching lines...) Expand all
456 } 458 }
457 return status; 459 return status;
458 } 460 }
459 461
460 void ProofVerifierChromium::OnJobComplete(Job* job) { 462 void ProofVerifierChromium::OnJobComplete(Job* job) {
461 active_jobs_.erase(job); 463 active_jobs_.erase(job);
462 delete job; 464 delete job;
463 } 465 }
464 466
465 } // namespace net 467 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698