| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 const QuicTag kPACE = TAG('P', 'A', 'C', 'E'); // Paced TCP cubic | 47 const QuicTag kPACE = TAG('P', 'A', 'C', 'E'); // Paced TCP cubic |
| 48 const QuicTag kINAR = TAG('I', 'N', 'A', 'R'); // Inter arrival | 48 const QuicTag kINAR = TAG('I', 'N', 'A', 'R'); // Inter arrival |
| 49 | 49 |
| 50 // Congestion control options | 50 // Congestion control options |
| 51 const QuicTag kTBBR = TAG('T', 'B', 'B', 'R'); // Reduced Buffer Bloat TCP | 51 const QuicTag kTBBR = TAG('T', 'B', 'B', 'R'); // Reduced Buffer Bloat TCP |
| 52 | 52 |
| 53 // Loss detection algorithm types | 53 // Loss detection algorithm types |
| 54 const QuicTag kNACK = TAG('N', 'A', 'C', 'K'); // TCP style nack counting | 54 const QuicTag kNACK = TAG('N', 'A', 'C', 'K'); // TCP style nack counting |
| 55 const QuicTag kTIME = TAG('T', 'I', 'M', 'E'); // Time based | 55 const QuicTag kTIME = TAG('T', 'I', 'M', 'E'); // Time based |
| 56 | 56 |
| 57 // FEC options |
| 58 const QuicTag kFHDR = TAG('F', 'H', 'D', 'R'); // FEC protect headers |
| 59 |
| 57 // Proof types (i.e. certificate types) | 60 // Proof types (i.e. certificate types) |
| 58 // NOTE: although it would be silly to do so, specifying both kX509 and kX59R | 61 // NOTE: although it would be silly to do so, specifying both kX509 and kX59R |
| 59 // is allowed and is equivalent to specifying only kX509. | 62 // is allowed and is equivalent to specifying only kX509. |
| 60 const QuicTag kX509 = TAG('X', '5', '0', '9'); // X.509 certificate, all key | 63 const QuicTag kX509 = TAG('X', '5', '0', '9'); // X.509 certificate, all key |
| 61 // types | 64 // types |
| 62 const QuicTag kX59R = TAG('X', '5', '9', 'R'); // X.509 certificate, RSA keys | 65 const QuicTag kX59R = TAG('X', '5', '9', 'R'); // X.509 certificate, RSA keys |
| 63 // only | 66 // only |
| 64 const QuicTag kCHID = TAG('C', 'H', 'I', 'D'); // Channel ID. | 67 const QuicTag kCHID = TAG('C', 'H', 'I', 'D'); // Channel ID. |
| 65 | 68 |
| 66 // Client hello tags | 69 // Client hello tags |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 // amplification factor of any mirror DoS attack. | 160 // amplification factor of any mirror DoS attack. |
| 158 // | 161 // |
| 159 // A client may pad an inchoate client hello to a size larger than | 162 // A client may pad an inchoate client hello to a size larger than |
| 160 // kClientHelloMinimumSize to make it more likely to receive a complete | 163 // kClientHelloMinimumSize to make it more likely to receive a complete |
| 161 // rejection message. | 164 // rejection message. |
| 162 const size_t kClientHelloMinimumSize = 1024; | 165 const size_t kClientHelloMinimumSize = 1024; |
| 163 | 166 |
| 164 } // namespace net | 167 } // namespace net |
| 165 | 168 |
| 166 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ | 169 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ |
| OLD | NEW |