| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "net/base/net_export.h" | 10 #include "net/base/net_export.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 const QuicTag kTBBR = TAG('T', 'B', 'B', 'R'); // Reduced Buffer Bloat TCP | 54 const QuicTag kTBBR = TAG('T', 'B', 'B', 'R'); // Reduced Buffer Bloat TCP |
| 55 const QuicTag kRENO = TAG('R', 'E', 'N', 'O'); // Reno Congestion Control | 55 const QuicTag kRENO = TAG('R', 'E', 'N', 'O'); // Reno Congestion Control |
| 56 const QuicTag kIW10 = TAG('I', 'W', '1', '0'); // Force ICWND to 10 | 56 const QuicTag kIW10 = TAG('I', 'W', '1', '0'); // Force ICWND to 10 |
| 57 const QuicTag kPACE = TAG('P', 'A', 'C', 'E'); // Paced TCP cubic | 57 const QuicTag kPACE = TAG('P', 'A', 'C', 'E'); // Paced TCP cubic |
| 58 const QuicTag k1CON = TAG('1', 'C', 'O', 'N'); // Emulate a single connection | 58 const QuicTag k1CON = TAG('1', 'C', 'O', 'N'); // Emulate a single connection |
| 59 | 59 |
| 60 // Loss detection algorithm types | 60 // Loss detection algorithm types |
| 61 const QuicTag kNACK = TAG('N', 'A', 'C', 'K'); // TCP style nack counting | 61 const QuicTag kNACK = TAG('N', 'A', 'C', 'K'); // TCP style nack counting |
| 62 const QuicTag kTIME = TAG('T', 'I', 'M', 'E'); // Time based | 62 const QuicTag kTIME = TAG('T', 'I', 'M', 'E'); // Time based |
| 63 | 63 |
| 64 // Optional support of truncated Connection IDs. If sent by a peer, the value |
| 65 // is the minimum number of bytes allowed for the connection ID sent to the |
| 66 // peer. |
| 67 const QuicTag kTCID = TAG('T', 'C', 'I', 'D'); // Connection ID truncation. |
| 68 |
| 64 // FEC options | 69 // FEC options |
| 65 const QuicTag kFHDR = TAG('F', 'H', 'D', 'R'); // FEC protect headers | 70 const QuicTag kFHDR = TAG('F', 'H', 'D', 'R'); // FEC protect headers |
| 66 | 71 |
| 67 // Proof types (i.e. certificate types) | 72 // Proof types (i.e. certificate types) |
| 68 // NOTE: although it would be silly to do so, specifying both kX509 and kX59R | 73 // NOTE: although it would be silly to do so, specifying both kX509 and kX59R |
| 69 // is allowed and is equivalent to specifying only kX509. | 74 // is allowed and is equivalent to specifying only kX509. |
| 70 const QuicTag kX509 = TAG('X', '5', '0', '9'); // X.509 certificate, all key | 75 const QuicTag kX509 = TAG('X', '5', '0', '9'); // X.509 certificate, all key |
| 71 // types | 76 // types |
| 72 const QuicTag kX59R = TAG('X', '5', '9', 'R'); // X.509 certificate, RSA keys | 77 const QuicTag kX59R = TAG('X', '5', '9', 'R'); // X.509 certificate, RSA keys |
| 73 // only | 78 // only |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 // amplification factor of any mirror DoS attack. | 170 // amplification factor of any mirror DoS attack. |
| 166 // | 171 // |
| 167 // A client may pad an inchoate client hello to a size larger than | 172 // A client may pad an inchoate client hello to a size larger than |
| 168 // kClientHelloMinimumSize to make it more likely to receive a complete | 173 // kClientHelloMinimumSize to make it more likely to receive a complete |
| 169 // rejection message. | 174 // rejection message. |
| 170 const size_t kClientHelloMinimumSize = 1024; | 175 const size_t kClientHelloMinimumSize = 1024; |
| 171 | 176 |
| 172 } // namespace net | 177 } // namespace net |
| 173 | 178 |
| 174 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ | 179 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ |
| OLD | NEW |