| OLD | NEW |
| 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 #ifndef NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_ | 5 #ifndef NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_ |
| 6 #define NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_ | 6 #define NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 // SetProofVerifyDetails takes ownership of |details|. | 89 // SetProofVerifyDetails takes ownership of |details|. |
| 90 void SetProofVerifyDetails(ProofVerifyDetails* details); | 90 void SetProofVerifyDetails(ProofVerifyDetails* details); |
| 91 | 91 |
| 92 // Copy the |server_config_|, |source_address_token_|, |certs_| and | 92 // Copy the |server_config_|, |source_address_token_|, |certs_| and |
| 93 // |server_config_sig_| from the |other|. The remaining fields, | 93 // |server_config_sig_| from the |other|. The remaining fields, |
| 94 // |generation_counter_|, |proof_verify_details_|, and |scfg_| remain | 94 // |generation_counter_|, |proof_verify_details_|, and |scfg_| remain |
| 95 // unchanged. | 95 // unchanged. |
| 96 void InitializeFrom(const CachedState& other); | 96 void InitializeFrom(const CachedState& other); |
| 97 | 97 |
| 98 private: | 98 private: |
| 99 std::string server_config_id_; // An opaque id from the server. | |
| 100 std::string server_config_; // A serialized handshake message. | 99 std::string server_config_; // A serialized handshake message. |
| 101 std::string source_address_token_; // An opaque proof of IP ownership. | 100 std::string source_address_token_; // An opaque proof of IP ownership. |
| 102 std::vector<std::string> certs_; // A list of certificates in leaf-first | 101 std::vector<std::string> certs_; // A list of certificates in leaf-first |
| 103 // order. | 102 // order. |
| 104 std::string server_config_sig_; // A signature of |server_config_|. | 103 std::string server_config_sig_; // A signature of |server_config_|. |
| 105 bool server_config_valid_; // True if |server_config_| is correctly | 104 bool server_config_valid_; // True if |server_config_| is correctly |
| 106 // signed and |certs_| has been | 105 // signed and |certs_| has been |
| 107 // validated. | 106 // validated. |
| 108 // Generation counter associated with the |server_config_|, |certs_| and | 107 // Generation counter associated with the |server_config_|, |certs_| and |
| 109 // |server_config_sig_| combination. It is incremented whenever we set | 108 // |server_config_sig_| combination. It is incremented whenever we set |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 | 229 |
| 231 scoped_ptr<ProofVerifier> proof_verifier_; | 230 scoped_ptr<ProofVerifier> proof_verifier_; |
| 232 scoped_ptr<ChannelIDSigner> channel_id_signer_; | 231 scoped_ptr<ChannelIDSigner> channel_id_signer_; |
| 233 | 232 |
| 234 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientConfig); | 233 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientConfig); |
| 235 }; | 234 }; |
| 236 | 235 |
| 237 } // namespace net | 236 } // namespace net |
| 238 | 237 |
| 239 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_ | 238 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_ |
| OLD | NEW |