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

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: Remove an extraneous test:: before TestCryptoVisitor 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
« no previous file with comments | « net/quic/crypto/crypto_protocol.h ('k') | net/quic/crypto/crypto_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/crypto/crypto_protocol.cc
===================================================================
--- net/quic/crypto/crypto_protocol.cc (revision 177030)
+++ net/quic/crypto/crypto_protocol.cc (working copy)
@@ -9,4 +9,34 @@
CryptoHandshakeMessage::CryptoHandshakeMessage() {}
CryptoHandshakeMessage::~CryptoHandshakeMessage() {}
+QuicClientCryptoConfig::QuicClientCryptoConfig() : version(0) {
+}
+
+QuicClientCryptoConfig::~QuicClientCryptoConfig() {}
+
+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);
+
+ // Keepalive timeout.
+ keepalive_timeout = QuicTime::Delta(); // Don't send keepalive probes.
+}
+
} // namespace net
« no previous file with comments | « net/quic/crypto/crypto_protocol.h ('k') | net/quic/crypto/crypto_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698