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

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: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/quic/crypto/crypto_protocol.h ('k') | net/quic/crypto/crypto_utils.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 QuicClientCryptoConfig::QuicClientCryptoConfig() : version(0) {
13 }
14
15 QuicClientCryptoConfig::~QuicClientCryptoConfig() {}
16
17 void QuicClientCryptoConfig::SetDefaults() {
18 // Version must be 0.
19 version = 0;
20
21 // Key exchange methods.
22 key_exchange.resize(2);
23 key_exchange[0] = kC255;
24 key_exchange[1] = kP256;
25
26 // Authenticated encryption algorithms.
27 aead.resize(2);
28 aead[0] = kAESG;
29 aead[1] = kAESH;
30
31 // Congestion control feedback types.
32 congestion_control.resize(1);
33 congestion_control[0] = kQBIC;
34
35 // Idle connection state lifetime.
36 idle_connection_state_lifetime = QuicTime::Delta::FromMilliseconds(300000);
37
38 // Keepalive timeout.
39 keepalive_timeout = QuicTime::Delta(); // Don't send keepalive probes.
40 }
41
12 } // namespace net 42 } // namespace net
OLDNEW
« 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