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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 // Multipath option. | 114 // Multipath option. |
115 const QuicTag kMPTH = TAG('M', 'P', 'T', 'H'); // Enable multipath. | 115 const QuicTag kMPTH = TAG('M', 'P', 'T', 'H'); // Enable multipath. |
116 | 116 |
117 const QuicTag kNCMR = TAG('N', 'C', 'M', 'R'); // Do not attempt connection | 117 const QuicTag kNCMR = TAG('N', 'C', 'M', 'R'); // Do not attempt connection |
118 // migration. | 118 // migration. |
119 | 119 |
120 // Enable bandwidth resumption experiment. | 120 // Enable bandwidth resumption experiment. |
121 const QuicTag kBWRE = TAG('B', 'W', 'R', 'E'); // Bandwidth resumption. | 121 const QuicTag kBWRE = TAG('B', 'W', 'R', 'E'); // Bandwidth resumption. |
122 const QuicTag kBWMX = TAG('B', 'W', 'M', 'X'); // Max bandwidth resumption. | 122 const QuicTag kBWMX = TAG('B', 'W', 'M', 'X'); // Max bandwidth resumption. |
123 const QuicTag kBWRS = TAG('B', 'W', 'R', 'S'); // Server bandwidth resumption. | 123 const QuicTag kBWRS = TAG('B', 'W', 'R', 'S'); // Server bandwidth resumption. |
| 124 const QuicTag kBWS2 = TAG('B', 'W', 'S', '2'); // Server bw resumption v2. |
124 | 125 |
125 // Enable path MTU discovery experiment. | 126 // Enable path MTU discovery experiment. |
126 const QuicTag kMTUH = TAG('M', 'T', 'U', 'H'); // High-target MTU discovery. | 127 const QuicTag kMTUH = TAG('M', 'T', 'U', 'H'); // High-target MTU discovery. |
127 const QuicTag kMTUL = TAG('M', 'T', 'U', 'L'); // Low-target MTU discovery. | 128 const QuicTag kMTUL = TAG('M', 'T', 'U', 'L'); // Low-target MTU discovery. |
128 | 129 |
129 const QuicTag kFHOL = TAG('F', 'H', 'O', 'L'); // Force head of line blocking. | 130 const QuicTag kFHOL = TAG('F', 'H', 'O', 'L'); // Force head of line blocking. |
130 | 131 |
131 // Proof types (i.e. certificate types) | 132 // Proof types (i.e. certificate types) |
132 // NOTE: although it would be silly to do so, specifying both kX509 and kX59R | 133 // NOTE: although it would be silly to do so, specifying both kX509 and kX59R |
133 // is allowed and is equivalent to specifying only kX509. | 134 // is allowed and is equivalent to specifying only kX509. |
(...skipping 22 matching lines...) Expand all Loading... |
156 const QuicTag kSNI = TAG('S', 'N', 'I', '\0'); // Server name | 157 const QuicTag kSNI = TAG('S', 'N', 'I', '\0'); // Server name |
157 // indication | 158 // indication |
158 const QuicTag kPUBS = TAG('P', 'U', 'B', 'S'); // Public key values | 159 const QuicTag kPUBS = TAG('P', 'U', 'B', 'S'); // Public key values |
159 const QuicTag kSCID = TAG('S', 'C', 'I', 'D'); // Server config id | 160 const QuicTag kSCID = TAG('S', 'C', 'I', 'D'); // Server config id |
160 const QuicTag kORBT = TAG('O', 'B', 'I', 'T'); // Server orbit. | 161 const QuicTag kORBT = TAG('O', 'B', 'I', 'T'); // Server orbit. |
161 const QuicTag kPDMD = TAG('P', 'D', 'M', 'D'); // Proof demand. | 162 const QuicTag kPDMD = TAG('P', 'D', 'M', 'D'); // Proof demand. |
162 const QuicTag kPROF = TAG('P', 'R', 'O', 'F'); // Proof (signature). | 163 const QuicTag kPROF = TAG('P', 'R', 'O', 'F'); // Proof (signature). |
163 const QuicTag kCCS = TAG('C', 'C', 'S', 0); // Common certificate set | 164 const QuicTag kCCS = TAG('C', 'C', 'S', 0); // Common certificate set |
164 const QuicTag kCCRT = TAG('C', 'C', 'R', 'T'); // Cached certificate | 165 const QuicTag kCCRT = TAG('C', 'C', 'R', 'T'); // Cached certificate |
165 const QuicTag kEXPY = TAG('E', 'X', 'P', 'Y'); // Expiry | 166 const QuicTag kEXPY = TAG('E', 'X', 'P', 'Y'); // Expiry |
| 167 const QuicTag kSTTL = TAG('S', 'T', 'T', 'L'); // Server Config TTL |
166 const QuicTag kSFCW = TAG('S', 'F', 'C', 'W'); // Initial stream flow control | 168 const QuicTag kSFCW = TAG('S', 'F', 'C', 'W'); // Initial stream flow control |
167 // receive window. | 169 // receive window. |
168 const QuicTag kCFCW = TAG('C', 'F', 'C', 'W'); // Initial session/connection | 170 const QuicTag kCFCW = TAG('C', 'F', 'C', 'W'); // Initial session/connection |
169 // flow control receive window. | 171 // flow control receive window. |
170 const QuicTag kUAID = TAG('U', 'A', 'I', 'D'); // Client's User Agent ID. | 172 const QuicTag kUAID = TAG('U', 'A', 'I', 'D'); // Client's User Agent ID. |
171 const QuicTag kXLCT = TAG('X', 'L', 'C', 'T'); // Expected leaf certificate. | 173 const QuicTag kXLCT = TAG('X', 'L', 'C', 'T'); // Expected leaf certificate. |
172 const QuicTag kTBKP = TAG('T', 'B', 'K', 'P'); // Token Binding key params. | 174 const QuicTag kTBKP = TAG('T', 'B', 'K', 'P'); // Token Binding key params. |
173 | 175 |
174 // Rejection tags | 176 // Rejection tags |
175 const QuicTag kRREJ = TAG('R', 'R', 'E', 'J'); // Reasons for server sending | 177 const QuicTag kRREJ = TAG('R', 'R', 'E', 'J'); // Reasons for server sending |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 // amplification factor of any mirror DoS attack. | 245 // amplification factor of any mirror DoS attack. |
244 // | 246 // |
245 // A client may pad an inchoate client hello to a size larger than | 247 // A client may pad an inchoate client hello to a size larger than |
246 // kClientHelloMinimumSize to make it more likely to receive a complete | 248 // kClientHelloMinimumSize to make it more likely to receive a complete |
247 // rejection message. | 249 // rejection message. |
248 const size_t kClientHelloMinimumSize = 1024; | 250 const size_t kClientHelloMinimumSize = 1024; |
249 | 251 |
250 } // namespace net | 252 } // namespace net |
251 | 253 |
252 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ | 254 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ |
OLD | NEW |