| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 std::string server_config_; // A serialized handshake message. | 168 std::string server_config_; // A serialized handshake message. |
| 169 std::string source_address_token_; // An opaque proof of IP ownership. | 169 std::string source_address_token_; // An opaque proof of IP ownership. |
| 170 std::vector<std::string> certs_; // A list of certificates in leaf-first | 170 std::vector<std::string> certs_; // A list of certificates in leaf-first |
| 171 // order. | 171 // order. |
| 172 std::string cert_sct_; // Signed timestamp of the leaf cert. | 172 std::string cert_sct_; // Signed timestamp of the leaf cert. |
| 173 std::string chlo_hash_; // Hash of the CHLO message. | 173 std::string chlo_hash_; // Hash of the CHLO message. |
| 174 std::string server_config_sig_; // A signature of |server_config_|. | 174 std::string server_config_sig_; // A signature of |server_config_|. |
| 175 bool server_config_valid_; // True if |server_config_| is correctly | 175 bool server_config_valid_; // True if |server_config_| is correctly |
| 176 // signed and |certs_| has been | 176 // signed and |certs_| has been |
| 177 // validated. | 177 // validated. |
| 178 QuicWallTime expiration_time_; // Time when the config is no longer |
| 179 // valid. |
| 178 // Generation counter associated with the |server_config_|, |certs_| and | 180 // Generation counter associated with the |server_config_|, |certs_| and |
| 179 // |server_config_sig_| combination. It is incremented whenever we set | 181 // |server_config_sig_| combination. It is incremented whenever we set |
| 180 // server_config_valid_ to false. | 182 // server_config_valid_ to false. |
| 181 uint64_t generation_counter_; | 183 uint64_t generation_counter_; |
| 182 | 184 |
| 183 std::unique_ptr<ProofVerifyDetails> proof_verify_details_; | 185 std::unique_ptr<ProofVerifyDetails> proof_verify_details_; |
| 184 | 186 |
| 185 // scfg contains the cached, parsed value of |server_config|. | 187 // scfg contains the cached, parsed value of |server_config|. |
| 186 mutable std::unique_ptr<CryptoHandshakeMessage> scfg_; | 188 mutable std::unique_ptr<CryptoHandshakeMessage> scfg_; |
| 187 | 189 |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 | 388 |
| 387 // The |user_agent_id_| passed in QUIC's CHLO message. | 389 // The |user_agent_id_| passed in QUIC's CHLO message. |
| 388 std::string user_agent_id_; | 390 std::string user_agent_id_; |
| 389 | 391 |
| 390 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientConfig); | 392 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientConfig); |
| 391 }; | 393 }; |
| 392 | 394 |
| 393 } // namespace net | 395 } // namespace net |
| 394 | 396 |
| 395 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_ | 397 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_CLIENT_CONFIG_H_ |
| OLD | NEW |