| 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 #ifndef NET_QUIC_CRYPTO_CRYPTO_SERVER_CONFIG_H_ | 5 #ifndef NET_QUIC_CRYPTO_CRYPTO_SERVER_CONFIG_H_ |
| 6 #define NET_QUIC_CRYPTO_CRYPTO_SERVER_CONFIG_H_ | 6 #define NET_QUIC_CRYPTO_CRYPTO_SERVER_CONFIG_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 | 51 |
| 52 // expiry_time is the time, in UNIX seconds, when the server config will | 52 // expiry_time is the time, in UNIX seconds, when the server config will |
| 53 // expire. If unset, it defaults to the current time plus six months. | 53 // expire. If unset, it defaults to the current time plus six months. |
| 54 QuicWallTime expiry_time; | 54 QuicWallTime expiry_time; |
| 55 // channel_id_enabled controls whether the server config will indicate | 55 // channel_id_enabled controls whether the server config will indicate |
| 56 // support for ChannelIDs. | 56 // support for ChannelIDs. |
| 57 bool channel_id_enabled; | 57 bool channel_id_enabled; |
| 58 // id contains the server config id for the resulting config. If empty, a | 58 // id contains the server config id for the resulting config. If empty, a |
| 59 // random id is generated. | 59 // random id is generated. |
| 60 std::string id; | 60 std::string id; |
| 61 // orbit contains the kOrbitSize bytes of the orbit value for the server |
| 62 // config. If |orbit| is empty then a random orbit is generated. |
| 63 std::string orbit; |
| 61 }; | 64 }; |
| 62 | 65 |
| 63 // |source_address_token_secret|: secret key material used for encrypting and | 66 // |source_address_token_secret|: secret key material used for encrypting and |
| 64 // decrypting source address tokens. It can be of any length as it is fed | 67 // decrypting source address tokens. It can be of any length as it is fed |
| 65 // into a KDF before use. In tests, use TESTING. | 68 // into a KDF before use. In tests, use TESTING. |
| 66 // |server_nonce_entropy|: an entropy source used to generate the orbit and | 69 // |server_nonce_entropy|: an entropy source used to generate the orbit and |
| 67 // key for server nonces, which are always local to a given instance of a | 70 // key for server nonces, which are always local to a given instance of a |
| 68 // server. | 71 // server. |
| 69 QuicCryptoServerConfig(base::StringPiece source_address_token_secret, | 72 QuicCryptoServerConfig(base::StringPiece source_address_token_secret, |
| 70 QuicRandom* server_nonce_entropy); | 73 QuicRandom* server_nonce_entropy); |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 uint32 strike_register_window_secs_; | 349 uint32 strike_register_window_secs_; |
| 347 uint32 source_address_token_future_secs_; | 350 uint32 source_address_token_future_secs_; |
| 348 uint32 source_address_token_lifetime_secs_; | 351 uint32 source_address_token_lifetime_secs_; |
| 349 uint32 server_nonce_strike_register_max_entries_; | 352 uint32 server_nonce_strike_register_max_entries_; |
| 350 uint32 server_nonce_strike_register_window_secs_; | 353 uint32 server_nonce_strike_register_window_secs_; |
| 351 }; | 354 }; |
| 352 | 355 |
| 353 } // namespace net | 356 } // namespace net |
| 354 | 357 |
| 355 #endif // NET_QUIC_CRYPTO_CRYPTO_SERVER_CONFIG_H_ | 358 #endif // NET_QUIC_CRYPTO_CRYPTO_SERVER_CONFIG_H_ |
| OLD | NEW |