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

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: Fix QuicStreamFactoryTest properly Created 8 years 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,29 @@
CryptoHandshakeMessage::CryptoHandshakeMessage() {}
CryptoHandshakeMessage::~CryptoHandshakeMessage() {}
+QuicClientHelloConfig::QuicClientHelloConfig() {
Ryan Hamilton 2012/12/22 22:31:32 These seem like sensible values, but I confess, I
+ // 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 = 300; // 300 seconds.
+
+ // Keepalive timeout.
+ keepalive_timeout = 0; // Don't send keepalive probes.
+}
+
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698