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

Side by Side Diff: net/quic/crypto/crypto_protocol.h

Issue 312193005: Pass chrome version and channel in CHLO message to server. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 #ifndef NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ 5 #ifndef NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_
6 #define NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ 6 #define NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "net/base/net_export.h" 10 #include "net/base/net_export.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 const QuicTag kPUBS = TAG('P', 'U', 'B', 'S'); // Public key values 86 const QuicTag kPUBS = TAG('P', 'U', 'B', 'S'); // Public key values
87 const QuicTag kSCID = TAG('S', 'C', 'I', 'D'); // Server config id 87 const QuicTag kSCID = TAG('S', 'C', 'I', 'D'); // Server config id
88 const QuicTag kORBT = TAG('O', 'B', 'I', 'T'); // Server orbit. 88 const QuicTag kORBT = TAG('O', 'B', 'I', 'T'); // Server orbit.
89 const QuicTag kPDMD = TAG('P', 'D', 'M', 'D'); // Proof demand. 89 const QuicTag kPDMD = TAG('P', 'D', 'M', 'D'); // Proof demand.
90 const QuicTag kPROF = TAG('P', 'R', 'O', 'F'); // Proof (signature). 90 const QuicTag kPROF = TAG('P', 'R', 'O', 'F'); // Proof (signature).
91 const QuicTag kCCS = TAG('C', 'C', 'S', 0); // Common certificate set 91 const QuicTag kCCS = TAG('C', 'C', 'S', 0); // Common certificate set
92 const QuicTag kCCRT = TAG('C', 'C', 'R', 'T'); // Cached certificate 92 const QuicTag kCCRT = TAG('C', 'C', 'R', 'T'); // Cached certificate
93 const QuicTag kEXPY = TAG('E', 'X', 'P', 'Y'); // Expiry 93 const QuicTag kEXPY = TAG('E', 'X', 'P', 'Y'); // Expiry
94 const QuicTag kIFCW = TAG('I', 'F', 'C', 'W'); // Initial flow control receive 94 const QuicTag kIFCW = TAG('I', 'F', 'C', 'W'); // Initial flow control receive
95 // window. 95 // window.
96 const QuicTag kCVER = TAG('C', 'V', 'E', 'R'); // Client Version.
Ryan Hamilton 2014/06/04 22:31:15 Heh, we used to have a CVER tag in an earlier vers
jar (doing other things) 2014/06/05 02:16:23 As a matter of course... for these "less important
ramant (doing other things) 2014/06/05 02:51:55 Used kCDSC. Done.
ramant (doing other things) 2014/06/05 02:51:55 Changed CDSC to UACV Done.
97
96 98
97 // Server hello tags 99 // Server hello tags
98 const QuicTag kCADR = TAG('C', 'A', 'D', 'R'); // Client IP address and port 100 const QuicTag kCADR = TAG('C', 'A', 'D', 'R'); // Client IP address and port
99 101
100 // CETV tags 102 // CETV tags
101 const QuicTag kCIDK = TAG('C', 'I', 'D', 'K'); // ChannelID key 103 const QuicTag kCIDK = TAG('C', 'I', 'D', 'K'); // ChannelID key
102 const QuicTag kCIDS = TAG('C', 'I', 'D', 'S'); // ChannelID signature 104 const QuicTag kCIDS = TAG('C', 'I', 'D', 'S'); // ChannelID signature
103 105
104 // Public reset tags 106 // Public reset tags
105 const QuicTag kRNON = TAG('R', 'N', 'O', 'N'); // Public reset nonce proof 107 const QuicTag kRNON = TAG('R', 'N', 'O', 'N'); // Public reset nonce proof
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 // amplification factor of any mirror DoS attack. 149 // amplification factor of any mirror DoS attack.
148 // 150 //
149 // A client may pad an inchoate client hello to a size larger than 151 // A client may pad an inchoate client hello to a size larger than
150 // kClientHelloMinimumSize to make it more likely to receive a complete 152 // kClientHelloMinimumSize to make it more likely to receive a complete
151 // rejection message. 153 // rejection message.
152 const size_t kClientHelloMinimumSize = 1024; 154 const size_t kClientHelloMinimumSize = 1024;
153 155
154 } // namespace net 156 } // namespace net
155 157
156 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ 158 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698