OLD | NEW |
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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 const QuicTag kCHID = TAG('C', 'H', 'I', 'D'); // Channel ID. | 145 const QuicTag kCHID = TAG('C', 'H', 'I', 'D'); // Channel ID. |
146 | 146 |
147 // Client hello tags | 147 // Client hello tags |
148 const QuicTag kVER = TAG('V', 'E', 'R', '\0'); // Version | 148 const QuicTag kVER = TAG('V', 'E', 'R', '\0'); // Version |
149 const QuicTag kNONC = TAG('N', 'O', 'N', 'C'); // The client's nonce | 149 const QuicTag kNONC = TAG('N', 'O', 'N', 'C'); // The client's nonce |
150 const QuicTag kNONP = TAG('N', 'O', 'N', 'P'); // The client's proof nonce | 150 const QuicTag kNONP = TAG('N', 'O', 'N', 'P'); // The client's proof nonce |
151 const QuicTag kKEXS = TAG('K', 'E', 'X', 'S'); // Key exchange methods | 151 const QuicTag kKEXS = TAG('K', 'E', 'X', 'S'); // Key exchange methods |
152 const QuicTag kAEAD = TAG('A', 'E', 'A', 'D'); // Authenticated | 152 const QuicTag kAEAD = TAG('A', 'E', 'A', 'D'); // Authenticated |
153 // encryption algorithms | 153 // encryption algorithms |
154 const QuicTag kCOPT = TAG('C', 'O', 'P', 'T'); // Connection options | 154 const QuicTag kCOPT = TAG('C', 'O', 'P', 'T'); // Connection options |
| 155 const QuicTag kCLOP = TAG('C', 'L', 'O', 'P'); // Client connection options |
155 const QuicTag kICSL = TAG('I', 'C', 'S', 'L'); // Idle network timeout | 156 const QuicTag kICSL = TAG('I', 'C', 'S', 'L'); // Idle network timeout |
156 const QuicTag kSCLS = TAG('S', 'C', 'L', 'S'); // Silently close on timeout | 157 const QuicTag kSCLS = TAG('S', 'C', 'L', 'S'); // Silently close on timeout |
157 const QuicTag kMSPC = TAG('M', 'S', 'P', 'C'); // Max streams per connection. | 158 const QuicTag kMSPC = TAG('M', 'S', 'P', 'C'); // Max streams per connection. |
158 const QuicTag kMIDS = TAG('M', 'I', 'D', 'S'); // Max incoming dynamic streams | 159 const QuicTag kMIDS = TAG('M', 'I', 'D', 'S'); // Max incoming dynamic streams |
159 const QuicTag kIRTT = TAG('I', 'R', 'T', 'T'); // Estimated initial RTT in us. | 160 const QuicTag kIRTT = TAG('I', 'R', 'T', 'T'); // Estimated initial RTT in us. |
160 const QuicTag kSWND = TAG('S', 'W', 'N', 'D'); // Server's Initial congestion | 161 const QuicTag kSWND = TAG('S', 'W', 'N', 'D'); // Server's Initial congestion |
161 // window. | 162 // window. |
162 const QuicTag kSNI = TAG('S', 'N', 'I', '\0'); // Server name | 163 const QuicTag kSNI = TAG('S', 'N', 'I', '\0'); // Server name |
163 // indication | 164 // indication |
164 const QuicTag kPUBS = TAG('P', 'U', 'B', 'S'); // Public key values | 165 const QuicTag kPUBS = TAG('P', 'U', 'B', 'S'); // Public key values |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 // amplification factor of any mirror DoS attack. | 247 // amplification factor of any mirror DoS attack. |
247 // | 248 // |
248 // A client may pad an inchoate client hello to a size larger than | 249 // A client may pad an inchoate client hello to a size larger than |
249 // kClientHelloMinimumSize to make it more likely to receive a complete | 250 // kClientHelloMinimumSize to make it more likely to receive a complete |
250 // rejection message. | 251 // rejection message. |
251 const size_t kClientHelloMinimumSize = 1024; | 252 const size_t kClientHelloMinimumSize = 1024; |
252 | 253 |
253 } // namespace net | 254 } // namespace net |
254 | 255 |
255 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ | 256 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ |
OLD | NEW |