Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Unified Diff: net/quic/crypto/crypto_protocol.cc

Issue 11633030: Send the ClientHello handshake message. Fix a bug in (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698