OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |