OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_protocol.h" | 5 #include "net/quic/crypto/crypto_protocol.h" |
6 | 6 |
7 namespace net { | 7 namespace net { |
8 | 8 |
9 CryptoHandshakeMessage::CryptoHandshakeMessage() {} | 9 CryptoHandshakeMessage::CryptoHandshakeMessage() {} |
10 CryptoHandshakeMessage::~CryptoHandshakeMessage() {} | 10 CryptoHandshakeMessage::~CryptoHandshakeMessage() {} |
11 | 11 |
| 12 QuicClientCryptoConfig::QuicClientCryptoConfig() : version(0) { |
| 13 } |
| 14 |
| 15 QuicClientCryptoConfig::~QuicClientCryptoConfig() {} |
| 16 |
| 17 void QuicClientCryptoConfig::SetDefaults() { |
| 18 // Version must be 0. |
| 19 version = 0; |
| 20 |
| 21 // Key exchange methods. |
| 22 key_exchange.resize(2); |
| 23 key_exchange[0] = kC255; |
| 24 key_exchange[1] = kP256; |
| 25 |
| 26 // Authenticated encryption algorithms. |
| 27 aead.resize(2); |
| 28 aead[0] = kAESG; |
| 29 aead[1] = kAESH; |
| 30 |
| 31 // Congestion control feedback types. |
| 32 congestion_control.resize(1); |
| 33 congestion_control[0] = kQBIC; |
| 34 |
| 35 // Idle connection state lifetime. |
| 36 idle_connection_state_lifetime = QuicTime::Delta::FromMilliseconds(300000); |
| 37 |
| 38 // Keepalive timeout. |
| 39 keepalive_timeout = QuicTime::Delta(); // Don't send keepalive probes. |
| 40 } |
| 41 |
12 } // namespace net | 42 } // namespace net |
OLD | NEW |