| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 const QuicTag kSNI = TAG('S', 'N', 'I', '\0'); // Server name | 84 const QuicTag kSNI = TAG('S', 'N', 'I', '\0'); // Server name |
| 85 // indication | 85 // indication |
| 86 const QuicTag kPUBS = TAG('P', 'U', 'B', 'S'); // Public key values | 86 const QuicTag kPUBS = TAG('P', 'U', 'B', 'S'); // Public key values |
| 87 const QuicTag kSCID = TAG('S', 'C', 'I', 'D'); // Server config id | 87 const QuicTag kSCID = TAG('S', 'C', 'I', 'D'); // Server config id |
| 88 const QuicTag kORBT = TAG('O', 'B', 'I', 'T'); // Server orbit. | 88 const QuicTag kORBT = TAG('O', 'B', 'I', 'T'); // Server orbit. |
| 89 const QuicTag kPDMD = TAG('P', 'D', 'M', 'D'); // Proof demand. | 89 const QuicTag kPDMD = TAG('P', 'D', 'M', 'D'); // Proof demand. |
| 90 const QuicTag kPROF = TAG('P', 'R', 'O', 'F'); // Proof (signature). | 90 const QuicTag kPROF = TAG('P', 'R', 'O', 'F'); // Proof (signature). |
| 91 const QuicTag kCCS = TAG('C', 'C', 'S', 0); // Common certificate set | 91 const QuicTag kCCS = TAG('C', 'C', 'S', 0); // Common certificate set |
| 92 const QuicTag kCCRT = TAG('C', 'C', 'R', 'T'); // Cached certificate | 92 const QuicTag kCCRT = TAG('C', 'C', 'R', 'T'); // Cached certificate |
| 93 const QuicTag kEXPY = TAG('E', 'X', 'P', 'Y'); // Expiry | 93 const QuicTag kEXPY = TAG('E', 'X', 'P', 'Y'); // Expiry |
| 94 // TODO(rjshade): Remove kIFCW when removing QUIC_VERSION_19. |
| 94 const QuicTag kIFCW = TAG('I', 'F', 'C', 'W'); // Initial flow control receive | 95 const QuicTag kIFCW = TAG('I', 'F', 'C', 'W'); // Initial flow control receive |
| 95 // window. | 96 // window. |
| 97 const QuicTag kSFCW = TAG('S', 'F', 'C', 'W'); // Initial stream flow control |
| 98 // receive window. |
| 99 const QuicTag kCFCW = TAG('C', 'F', 'C', 'W'); // Initial session/connection |
| 100 // flow control receive window. |
| 96 const QuicTag kUAID = TAG('U', 'A', 'I', 'D'); // Client's User Agent ID. | 101 const QuicTag kUAID = TAG('U', 'A', 'I', 'D'); // Client's User Agent ID. |
| 97 | 102 |
| 98 | |
| 99 // Server hello tags | 103 // Server hello tags |
| 100 const QuicTag kCADR = TAG('C', 'A', 'D', 'R'); // Client IP address and port | 104 const QuicTag kCADR = TAG('C', 'A', 'D', 'R'); // Client IP address and port |
| 101 | 105 |
| 102 // CETV tags | 106 // CETV tags |
| 103 const QuicTag kCIDK = TAG('C', 'I', 'D', 'K'); // ChannelID key | 107 const QuicTag kCIDK = TAG('C', 'I', 'D', 'K'); // ChannelID key |
| 104 const QuicTag kCIDS = TAG('C', 'I', 'D', 'S'); // ChannelID signature | 108 const QuicTag kCIDS = TAG('C', 'I', 'D', 'S'); // ChannelID signature |
| 105 | 109 |
| 106 // Public reset tags | 110 // Public reset tags |
| 107 const QuicTag kRNON = TAG('R', 'N', 'O', 'N'); // Public reset nonce proof | 111 const QuicTag kRNON = TAG('R', 'N', 'O', 'N'); // Public reset nonce proof |
| 108 const QuicTag kRSEQ = TAG('R', 'S', 'E', 'Q'); // Rejected sequence number | 112 const QuicTag kRSEQ = TAG('R', 'S', 'E', 'Q'); // Rejected sequence number |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 // amplification factor of any mirror DoS attack. | 156 // amplification factor of any mirror DoS attack. |
| 153 // | 157 // |
| 154 // A client may pad an inchoate client hello to a size larger than | 158 // A client may pad an inchoate client hello to a size larger than |
| 155 // kClientHelloMinimumSize to make it more likely to receive a complete | 159 // kClientHelloMinimumSize to make it more likely to receive a complete |
| 156 // rejection message. | 160 // rejection message. |
| 157 const size_t kClientHelloMinimumSize = 1024; | 161 const size_t kClientHelloMinimumSize = 1024; |
| 158 | 162 |
| 159 } // namespace net | 163 } // namespace net |
| 160 | 164 |
| 161 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ | 165 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ |
| OLD | NEW |