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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 // Enable bandwidth resumption experiment. | 123 // Enable bandwidth resumption experiment. |
124 const QuicTag kBWRE = TAG('B', 'W', 'R', 'E'); // Bandwidth resumption. | 124 const QuicTag kBWRE = TAG('B', 'W', 'R', 'E'); // Bandwidth resumption. |
125 const QuicTag kBWMX = TAG('B', 'W', 'M', 'X'); // Max bandwidth resumption. | 125 const QuicTag kBWMX = TAG('B', 'W', 'M', 'X'); // Max bandwidth resumption. |
126 const QuicTag kBWRS = TAG('B', 'W', 'R', 'S'); // Server bandwidth resumption. | 126 const QuicTag kBWRS = TAG('B', 'W', 'R', 'S'); // Server bandwidth resumption. |
127 const QuicTag kBWS2 = TAG('B', 'W', 'S', '2'); // Server bw resumption v2. | 127 const QuicTag kBWS2 = TAG('B', 'W', 'S', '2'); // Server bw resumption v2. |
128 | 128 |
129 // Enable path MTU discovery experiment. | 129 // Enable path MTU discovery experiment. |
130 const QuicTag kMTUH = TAG('M', 'T', 'U', 'H'); // High-target MTU discovery. | 130 const QuicTag kMTUH = TAG('M', 'T', 'U', 'H'); // High-target MTU discovery. |
131 const QuicTag kMTUL = TAG('M', 'T', 'U', 'L'); // Low-target MTU discovery. | 131 const QuicTag kMTUL = TAG('M', 'T', 'U', 'L'); // Low-target MTU discovery. |
132 | 132 |
| 133 // Tags for async signing experiments |
| 134 const QuicTag kASYN = TAG('A', 'S', 'Y', 'N'); // Perform asynchronous signing |
| 135 const QuicTag kSYNC = TAG('S', 'Y', 'N', 'C'); // Perform synchronous signing |
| 136 |
133 const QuicTag kFHOL = TAG('F', 'H', 'O', 'L'); // Force head of line blocking. | 137 const QuicTag kFHOL = TAG('F', 'H', 'O', 'L'); // Force head of line blocking. |
134 | 138 |
135 // Proof types (i.e. certificate types) | 139 // Proof types (i.e. certificate types) |
136 // NOTE: although it would be silly to do so, specifying both kX509 and kX59R | 140 // NOTE: although it would be silly to do so, specifying both kX509 and kX59R |
137 // is allowed and is equivalent to specifying only kX509. | 141 // is allowed and is equivalent to specifying only kX509. |
138 const QuicTag kX509 = TAG('X', '5', '0', '9'); // X.509 certificate, all key | 142 const QuicTag kX509 = TAG('X', '5', '0', '9'); // X.509 certificate, all key |
139 // types | 143 // types |
140 const QuicTag kX59R = TAG('X', '5', '9', 'R'); // X.509 certificate, RSA keys | 144 const QuicTag kX59R = TAG('X', '5', '9', 'R'); // X.509 certificate, RSA keys |
141 // only | 145 // only |
142 const QuicTag kCHID = TAG('C', 'H', 'I', 'D'); // Channel ID. | 146 const QuicTag kCHID = TAG('C', 'H', 'I', 'D'); // Channel ID. |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 // amplification factor of any mirror DoS attack. | 250 // amplification factor of any mirror DoS attack. |
247 // | 251 // |
248 // A client may pad an inchoate client hello to a size larger than | 252 // A client may pad an inchoate client hello to a size larger than |
249 // kClientHelloMinimumSize to make it more likely to receive a complete | 253 // kClientHelloMinimumSize to make it more likely to receive a complete |
250 // rejection message. | 254 // rejection message. |
251 const size_t kClientHelloMinimumSize = 1024; | 255 const size_t kClientHelloMinimumSize = 1024; |
252 | 256 |
253 } // namespace net | 257 } // namespace net |
254 | 258 |
255 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ | 259 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ |
OLD | NEW |