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

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

Issue 20047002: net: make QUIC ProofVerifier more generic. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/crypto_handshake.h" 5 #include "net/quic/crypto/crypto_handshake.h"
6 6
7 #include <ctype.h> 7 #include <ctype.h>
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 } 493 }
494 494
495 bool QuicCryptoClientConfig::CachedState::proof_valid() const { 495 bool QuicCryptoClientConfig::CachedState::proof_valid() const {
496 return server_config_valid_; 496 return server_config_valid_;
497 } 497 }
498 498
499 uint64 QuicCryptoClientConfig::CachedState::generation_counter() const { 499 uint64 QuicCryptoClientConfig::CachedState::generation_counter() const {
500 return generation_counter_; 500 return generation_counter_;
501 } 501 }
502 502
503 const CertVerifyResult* 503 const ProofVerifyDetails*
504 QuicCryptoClientConfig::CachedState::cert_verify_result() const { 504 QuicCryptoClientConfig::CachedState::proof_verify_details() const {
505 return &cert_verify_result_; 505 return proof_verify_details_.get();
506 } 506 }
507 507
508 void QuicCryptoClientConfig::CachedState::set_source_address_token( 508 void QuicCryptoClientConfig::CachedState::set_source_address_token(
509 StringPiece token) { 509 StringPiece token) {
510 source_address_token_ = token.as_string(); 510 source_address_token_ = token.as_string();
511 } 511 }
512 512
513 void QuicCryptoClientConfig::CachedState::SetCertVerifyResult( 513 void QuicCryptoClientConfig::CachedState::SetProofVerifyDetails(
514 const CertVerifyResult& cert_verify_result) { 514 ProofVerifyDetails* details) {
515 cert_verify_result_.CopyFrom(cert_verify_result); 515 proof_verify_details_.reset(details);
516 } 516 }
517 517
518 void QuicCryptoClientConfig::SetDefaults() { 518 void QuicCryptoClientConfig::SetDefaults() {
519 // Version must be 0. 519 // Version must be 0.
520 // TODO(agl): this version stuff is obsolete now. 520 // TODO(agl): this version stuff is obsolete now.
521 version = QuicCryptoConfig::CONFIG_VERSION; 521 version = QuicCryptoConfig::CONFIG_VERSION;
522 522
523 // Key exchange methods. 523 // Key exchange methods.
524 kexs.resize(2); 524 kexs.resize(2);
525 kexs[0] = kC255; 525 kexs[0] = kC255;
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
873 873
874 ChannelIDSigner* QuicCryptoClientConfig::channel_id_signer() const { 874 ChannelIDSigner* QuicCryptoClientConfig::channel_id_signer() const {
875 return channel_id_signer_.get(); 875 return channel_id_signer_.get();
876 } 876 }
877 877
878 void QuicCryptoClientConfig::SetChannelIDSigner(ChannelIDSigner* signer) { 878 void QuicCryptoClientConfig::SetChannelIDSigner(ChannelIDSigner* signer) {
879 channel_id_signer_.reset(signer); 879 channel_id_signer_.reset(signer);
880 } 880 }
881 881
882 } // namespace net 882 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698