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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 const QuicTag kAKD3 = TAG('A', 'K', 'D', '3'); // Ack decimation style acking | 96 const QuicTag kAKD3 = TAG('A', 'K', 'D', '3'); // Ack decimation style acking |
97 // with 1/8 RTT acks. | 97 // with 1/8 RTT acks. |
98 const QuicTag kAKD4 = TAG('A', 'K', 'D', '4'); // Ack decimation with 1/8 RTT | 98 const QuicTag kAKD4 = TAG('A', 'K', 'D', '4'); // Ack decimation with 1/8 RTT |
99 // tolerating out of order. | 99 // tolerating out of order. |
100 const QuicTag kSSLR = TAG('S', 'S', 'L', 'R'); // Slow Start Large Reduction. | 100 const QuicTag kSSLR = TAG('S', 'S', 'L', 'R'); // Slow Start Large Reduction. |
101 const QuicTag kNPRR = TAG('N', 'P', 'R', 'R'); // Pace at unity instead of PRR | 101 const QuicTag kNPRR = TAG('N', 'P', 'R', 'R'); // Pace at unity instead of PRR |
102 const QuicTag k5RTO = TAG('5', 'R', 'T', 'O'); // Close connection on 5 RTOs | 102 const QuicTag k5RTO = TAG('5', 'R', 'T', 'O'); // Close connection on 5 RTOs |
103 const QuicTag kCTIM = TAG('C', 'T', 'I', 'M'); // Client timestamp in seconds | 103 const QuicTag kCTIM = TAG('C', 'T', 'I', 'M'); // Client timestamp in seconds |
104 // since UNIX epoch. | 104 // since UNIX epoch. |
105 const QuicTag kDHDT = TAG('D', 'H', 'D', 'T'); // Disable HPACK dynamic table. | 105 const QuicTag kDHDT = TAG('D', 'H', 'D', 'T'); // Disable HPACK dynamic table. |
106 const QuicTag kIPFS = TAG('I', 'P', 'F', 'S'); // No Immediate Forward Secrecy | |
107 const QuicTag kCONH = TAG('C', 'O', 'N', 'H'); // Conservative Handshake | 106 const QuicTag kCONH = TAG('C', 'O', 'N', 'H'); // Conservative Handshake |
108 // Retransmissions. | 107 // Retransmissions. |
109 const QuicTag kLFAK = TAG('L', 'F', 'A', 'K'); // Don't invoke FACK on the | 108 const QuicTag kLFAK = TAG('L', 'F', 'A', 'K'); // Don't invoke FACK on the |
110 // first ack. | 109 // first ack. |
111 | 110 |
112 // Optional support of truncated Connection IDs. If sent by a peer, the value | 111 // Optional support of truncated Connection IDs. If sent by a peer, the value |
113 // is the minimum number of bytes allowed for the connection ID sent to the | 112 // is the minimum number of bytes allowed for the connection ID sent to the |
114 // peer. | 113 // peer. |
115 const QuicTag kTCID = TAG('T', 'C', 'I', 'D'); // Connection ID truncation. | 114 const QuicTag kTCID = TAG('T', 'C', 'I', 'D'); // Connection ID truncation. |
116 | 115 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 // Public reset tags | 198 // Public reset tags |
200 const QuicTag kRNON = TAG('R', 'N', 'O', 'N'); // Public reset nonce proof | 199 const QuicTag kRNON = TAG('R', 'N', 'O', 'N'); // Public reset nonce proof |
201 const QuicTag kRSEQ = TAG('R', 'S', 'E', 'Q'); // Rejected packet number | 200 const QuicTag kRSEQ = TAG('R', 'S', 'E', 'Q'); // Rejected packet number |
202 | 201 |
203 // Universal tags | 202 // Universal tags |
204 const QuicTag kPAD = TAG('P', 'A', 'D', '\0'); // Padding | 203 const QuicTag kPAD = TAG('P', 'A', 'D', '\0'); // Padding |
205 | 204 |
206 // Server push tags | 205 // Server push tags |
207 const QuicTag kSPSH = TAG('S', 'P', 'S', 'H'); // Support server push. | 206 const QuicTag kSPSH = TAG('S', 'P', 'S', 'H'); // Support server push. |
208 | 207 |
209 // Sent by clients with the fix to crbug/566156 | |
210 const QuicTag kFIXD = TAG('F', 'I', 'X', 'D'); // Client hello | |
211 // clang-format on | 208 // clang-format on |
212 | 209 |
213 // These tags have a special form so that they appear either at the beginning | 210 // These tags have a special form so that they appear either at the beginning |
214 // or the end of a handshake message. Since handshake messages are sorted by | 211 // or the end of a handshake message. Since handshake messages are sorted by |
215 // tag value, the tags with 0 at the end will sort first and those with 255 at | 212 // tag value, the tags with 0 at the end will sort first and those with 255 at |
216 // the end will sort last. | 213 // the end will sort last. |
217 // | 214 // |
218 // The certificate chain should have a tag that will cause it to be sorted at | 215 // The certificate chain should have a tag that will cause it to be sorted at |
219 // the end of any handshake messages because it's likely to be large and the | 216 // the end of any handshake messages because it's likely to be large and the |
220 // client might be able to get everything that it needs from the small values at | 217 // client might be able to get everything that it needs from the small values at |
(...skipping 28 matching lines...) Expand all Loading... |
249 // amplification factor of any mirror DoS attack. | 246 // amplification factor of any mirror DoS attack. |
250 // | 247 // |
251 // A client may pad an inchoate client hello to a size larger than | 248 // A client may pad an inchoate client hello to a size larger than |
252 // kClientHelloMinimumSize to make it more likely to receive a complete | 249 // kClientHelloMinimumSize to make it more likely to receive a complete |
253 // rejection message. | 250 // rejection message. |
254 const size_t kClientHelloMinimumSize = 1024; | 251 const size_t kClientHelloMinimumSize = 1024; |
255 | 252 |
256 } // namespace net | 253 } // namespace net |
257 | 254 |
258 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ | 255 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ |
OLD | NEW |