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 #include "net/quic/crypto/quic_crypto_server_config.h" | 5 #include "net/quic/crypto/quic_crypto_server_config.h" |
6 | 6 |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 delete result; | 198 delete result; |
199 delete this; | 199 delete this; |
200 } | 200 } |
201 | 201 |
202 QuicCryptoServerConfig::ConfigOptions::ConfigOptions() | 202 QuicCryptoServerConfig::ConfigOptions::ConfigOptions() |
203 : expiry_time(QuicWallTime::Zero()), | 203 : expiry_time(QuicWallTime::Zero()), |
204 channel_id_enabled(false), | 204 channel_id_enabled(false), |
205 token_binding_enabled(false), | 205 token_binding_enabled(false), |
206 p256(false) {} | 206 p256(false) {} |
207 | 207 |
| 208 QuicCryptoServerConfig::ConfigOptions::ConfigOptions( |
| 209 const ConfigOptions& other) = default; |
| 210 |
208 QuicCryptoServerConfig::QuicCryptoServerConfig( | 211 QuicCryptoServerConfig::QuicCryptoServerConfig( |
209 StringPiece source_address_token_secret, | 212 StringPiece source_address_token_secret, |
210 QuicRandom* server_nonce_entropy, | 213 QuicRandom* server_nonce_entropy, |
211 ProofSource* proof_source) | 214 ProofSource* proof_source) |
212 : replay_protection_(true), | 215 : replay_protection_(true), |
213 chlo_multiplier_(kMultiplier), | 216 chlo_multiplier_(kMultiplier), |
214 configs_lock_(), | 217 configs_lock_(), |
215 primary_config_(nullptr), | 218 primary_config_(nullptr), |
216 next_config_promotion_time_(QuicWallTime::Zero()), | 219 next_config_promotion_time_(QuicWallTime::Zero()), |
217 server_nonce_strike_register_lock_(), | 220 server_nonce_strike_register_lock_(), |
(...skipping 1594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1812 priority(0), | 1815 priority(0), |
1813 source_address_token_boxer(nullptr) {} | 1816 source_address_token_boxer(nullptr) {} |
1814 | 1817 |
1815 QuicCryptoServerConfig::Config::~Config() { | 1818 QuicCryptoServerConfig::Config::~Config() { |
1816 STLDeleteElements(&key_exchanges); | 1819 STLDeleteElements(&key_exchanges); |
1817 } | 1820 } |
1818 | 1821 |
1819 QuicCryptoProof::QuicCryptoProof() {} | 1822 QuicCryptoProof::QuicCryptoProof() {} |
1820 QuicCryptoProof::~QuicCryptoProof() {} | 1823 QuicCryptoProof::~QuicCryptoProof() {} |
1821 } // namespace net | 1824 } // namespace net |
OLD | NEW |