Index: net/quic/crypto/crypto_protocol.cc |
=================================================================== |
--- net/quic/crypto/crypto_protocol.cc (revision 174485) |
+++ net/quic/crypto/crypto_protocol.cc (working copy) |
@@ -9,4 +9,32 @@ |
CryptoHandshakeMessage::CryptoHandshakeMessage() {} |
CryptoHandshakeMessage::~CryptoHandshakeMessage() {} |
+QuicClientCryptoConfig::QuicClientCryptoConfig() : version(0) { |
+} |
+ |
+void QuicClientCryptoConfig::SetDefaults() { |
+ // Version must be 0. |
+ version = 0; |
+ |
+ // Key exchange methods. |
+ key_exchange.resize(2); |
+ key_exchange[0] = kC255; |
+ key_exchange[1] = kP256; |
+ |
+ // Authenticated encryption algorithms. |
+ aead.resize(2); |
+ aead[0] = kAESG; |
+ aead[1] = kAESH; |
+ |
+ // Congestion control feedback types. |
+ congestion_control.resize(1); |
+ congestion_control[0] = kQBIC; |
+ |
+ // Idle connection state lifetime. |
+ idle_connection_state_lifetime = QuicTime::Delta::FromMilliseconds(300000); |
wtc
2013/01/15 03:57:59
Would you like me to add a QuicTime::Delta::FromSe
Ryan Hamilton
2013/01/15 04:27:41
The current code is fine with me.
|
+ |
+ // Keepalive timeout. |
+ keepalive_timeout = QuicTime::Delta(); // Don't send keepalive probes. |
+} |
+ |
} // namespace net |