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

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

Issue 20898003: Revert 213862 "net: make QUIC ProofVerifier more generic." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1578/src/
Patch Set: Created 7 years, 4 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
« no previous file with comments | « net/quic/crypto/crypto_handshake.h ('k') | net/quic/crypto/proof_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ProofVerifyDetails* 503 const CertVerifyResult*
504 QuicCryptoClientConfig::CachedState::proof_verify_details() const { 504 QuicCryptoClientConfig::CachedState::cert_verify_result() const {
505 return proof_verify_details_.get(); 505 return &cert_verify_result_;
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::SetProofVerifyDetails( 513 void QuicCryptoClientConfig::CachedState::SetCertVerifyResult(
514 ProofVerifyDetails* details) { 514 const CertVerifyResult& cert_verify_result) {
515 proof_verify_details_.reset(details); 515 cert_verify_result_.CopyFrom(cert_verify_result);
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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
880 880
881 ChannelIDSigner* QuicCryptoClientConfig::channel_id_signer() const { 881 ChannelIDSigner* QuicCryptoClientConfig::channel_id_signer() const {
882 return channel_id_signer_.get(); 882 return channel_id_signer_.get();
883 } 883 }
884 884
885 void QuicCryptoClientConfig::SetChannelIDSigner(ChannelIDSigner* signer) { 885 void QuicCryptoClientConfig::SetChannelIDSigner(ChannelIDSigner* signer) {
886 channel_id_signer_.reset(signer); 886 channel_id_signer_.reset(signer);
887 } 887 }
888 888
889 } // namespace net 889 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/crypto/crypto_handshake.h ('k') | net/quic/crypto/proof_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698