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

Side by Side 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 7 years, 12 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 QuicClientHelloConfig::QuicClientHelloConfig() {
Ryan Hamilton 2012/12/22 22:31:32 These seem like sensible values, but I confess, I
13 // Version must be 0.
14 version = 0;
15
16 // Key exchange methods.
17 key_exchange.resize(2);
18 key_exchange[0] = kC255;
19 key_exchange[1] = kP256;
20
21 // Authenticated encryption algorithms.
22 aead.resize(2);
23 aead[0] = kAESG;
24 aead[1] = kAESH;
25
26 // Congestion control feedback types.
27 congestion_control.resize(1);
28 congestion_control[0] = kQBIC;
29
30 // Idle connection state lifetime.
31 idle_connection_state_lifetime = 300; // 300 seconds.
32
33 // Keepalive timeout.
34 keepalive_timeout = 0; // Don't send keepalive probes.
35 }
36
12 } // namespace net 37 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698