| 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 const QuicTag kCIDK = TAG('C', 'I', 'D', 'K'); // ChannelID key | 169 const QuicTag kCIDK = TAG('C', 'I', 'D', 'K'); // ChannelID key |
| 170 const QuicTag kCIDS = TAG('C', 'I', 'D', 'S'); // ChannelID signature | 170 const QuicTag kCIDS = TAG('C', 'I', 'D', 'S'); // ChannelID signature |
| 171 | 171 |
| 172 // Public reset tags | 172 // Public reset tags |
| 173 const QuicTag kRNON = TAG('R', 'N', 'O', 'N'); // Public reset nonce proof | 173 const QuicTag kRNON = TAG('R', 'N', 'O', 'N'); // Public reset nonce proof |
| 174 const QuicTag kRSEQ = TAG('R', 'S', 'E', 'Q'); // Rejected packet number | 174 const QuicTag kRSEQ = TAG('R', 'S', 'E', 'Q'); // Rejected packet number |
| 175 | 175 |
| 176 // Universal tags | 176 // Universal tags |
| 177 const QuicTag kPAD = TAG('P', 'A', 'D', '\0'); // Padding | 177 const QuicTag kPAD = TAG('P', 'A', 'D', '\0'); // Padding |
| 178 | 178 |
| 179 // Server push tags |
| 180 const QuicTag kSPSH = TAG('S', 'P', 'S', 'H'); // Support server push. |
| 181 |
| 179 // Sent by clients with the fix to crbug/566156 | 182 // Sent by clients with the fix to crbug/566156 |
| 180 const QuicTag kFIXD = TAG('F', 'I', 'X', 'D'); // Client hello | 183 const QuicTag kFIXD = TAG('F', 'I', 'X', 'D'); // Client hello |
| 181 // clang-format on | 184 // clang-format on |
| 182 | 185 |
| 183 // These tags have a special form so that they appear either at the beginning | 186 // These tags have a special form so that they appear either at the beginning |
| 184 // or the end of a handshake message. Since handshake messages are sorted by | 187 // or the end of a handshake message. Since handshake messages are sorted by |
| 185 // tag value, the tags with 0 at the end will sort first and those with 255 at | 188 // tag value, the tags with 0 at the end will sort first and those with 255 at |
| 186 // the end will sort last. | 189 // the end will sort last. |
| 187 // | 190 // |
| 188 // The certificate chain should have a tag that will cause it to be sorted at | 191 // The certificate chain should have a tag that will cause it to be sorted at |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 // amplification factor of any mirror DoS attack. | 227 // amplification factor of any mirror DoS attack. |
| 225 // | 228 // |
| 226 // A client may pad an inchoate client hello to a size larger than | 229 // A client may pad an inchoate client hello to a size larger than |
| 227 // kClientHelloMinimumSize to make it more likely to receive a complete | 230 // kClientHelloMinimumSize to make it more likely to receive a complete |
| 228 // rejection message. | 231 // rejection message. |
| 229 const size_t kClientHelloMinimumSize = 1024; | 232 const size_t kClientHelloMinimumSize = 1024; |
| 230 | 233 |
| 231 } // namespace net | 234 } // namespace net |
| 232 | 235 |
| 233 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ | 236 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ |
| OLD | NEW |