| 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 const QuicTag kXLCT = TAG('X', 'L', 'C', 'T'); // Expected leaf certificate. | 167 const QuicTag kXLCT = TAG('X', 'L', 'C', 'T'); // Expected leaf certificate. |
| 168 const QuicTag kTBKP = TAG('T', 'B', 'K', 'P'); // Token Binding key params. | 168 const QuicTag kTBKP = TAG('T', 'B', 'K', 'P'); // Token Binding key params. |
| 169 | 169 |
| 170 // Rejection tags | 170 // Rejection tags |
| 171 const QuicTag kRREJ = TAG('R', 'R', 'E', 'J'); // Reasons for server sending | 171 const QuicTag kRREJ = TAG('R', 'R', 'E', 'J'); // Reasons for server sending |
| 172 // Stateless Reject tags | 172 // Stateless Reject tags |
| 173 const QuicTag kRCID = TAG('R', 'C', 'I', 'D'); // Server-designated | 173 const QuicTag kRCID = TAG('R', 'C', 'I', 'D'); // Server-designated |
| 174 // connection ID | 174 // connection ID |
| 175 // Server hello tags | 175 // Server hello tags |
| 176 const QuicTag kCADR = TAG('C', 'A', 'D', 'R'); // Client IP address and port | 176 const QuicTag kCADR = TAG('C', 'A', 'D', 'R'); // Client IP address and port |
| 177 const QuicTag kASAD = TAG('A', 'S', 'A', 'D'); // Alternate Server IP address |
| 178 // and port. |
| 177 | 179 |
| 178 // CETV tags | 180 // CETV tags |
| 179 const QuicTag kCIDK = TAG('C', 'I', 'D', 'K'); // ChannelID key | 181 const QuicTag kCIDK = TAG('C', 'I', 'D', 'K'); // ChannelID key |
| 180 const QuicTag kCIDS = TAG('C', 'I', 'D', 'S'); // ChannelID signature | 182 const QuicTag kCIDS = TAG('C', 'I', 'D', 'S'); // ChannelID signature |
| 181 | 183 |
| 182 // Public reset tags | 184 // Public reset tags |
| 183 const QuicTag kRNON = TAG('R', 'N', 'O', 'N'); // Public reset nonce proof | 185 const QuicTag kRNON = TAG('R', 'N', 'O', 'N'); // Public reset nonce proof |
| 184 const QuicTag kRSEQ = TAG('R', 'S', 'E', 'Q'); // Rejected packet number | 186 const QuicTag kRSEQ = TAG('R', 'S', 'E', 'Q'); // Rejected packet number |
| 185 | 187 |
| 186 // Universal tags | 188 // Universal tags |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 // amplification factor of any mirror DoS attack. | 239 // amplification factor of any mirror DoS attack. |
| 238 // | 240 // |
| 239 // A client may pad an inchoate client hello to a size larger than | 241 // A client may pad an inchoate client hello to a size larger than |
| 240 // kClientHelloMinimumSize to make it more likely to receive a complete | 242 // kClientHelloMinimumSize to make it more likely to receive a complete |
| 241 // rejection message. | 243 // rejection message. |
| 242 const size_t kClientHelloMinimumSize = 1024; | 244 const size_t kClientHelloMinimumSize = 1024; |
| 243 | 245 |
| 244 } // namespace net | 246 } // namespace net |
| 245 | 247 |
| 246 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ | 248 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ |
| OLD | NEW |