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