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 <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 const CryptoTag kCGST = MAKE_TAG('C', 'G', 'S', 'T'); // Congestion control | 50 const CryptoTag kCGST = MAKE_TAG('C', 'G', 'S', 'T'); // Congestion control |
51 // feedback types | 51 // feedback types |
52 const CryptoTag kICSL = MAKE_TAG('I', 'C', 'S', 'L'); // Idle connection state | 52 const CryptoTag kICSL = MAKE_TAG('I', 'C', 'S', 'L'); // Idle connection state |
53 // lifetime | 53 // lifetime |
54 const CryptoTag kKATO = MAKE_TAG('K', 'A', 'T', 'O'); // Keepalive timeout | 54 const CryptoTag kKATO = MAKE_TAG('K', 'A', 'T', 'O'); // Keepalive timeout |
55 const CryptoTag kSNI = MAKE_TAG('S', 'N', 'I', '\0'); // Server name | 55 const CryptoTag kSNI = MAKE_TAG('S', 'N', 'I', '\0'); // Server name |
56 // indication | 56 // indication |
57 const CryptoTag kPUBS = MAKE_TAG('P', 'U', 'B', 'S'); // Public key values | 57 const CryptoTag kPUBS = MAKE_TAG('P', 'U', 'B', 'S'); // Public key values |
58 const CryptoTag kSCID = MAKE_TAG('S', 'C', 'I', 'D'); // Server config id | 58 const CryptoTag kSCID = MAKE_TAG('S', 'C', 'I', 'D'); // Server config id |
59 const CryptoTag kSRCT = MAKE_TAG('S', 'R', 'C', 'T'); // Source-address token | 59 const CryptoTag kSRCT = MAKE_TAG('S', 'R', 'C', 'T'); // Source-address token |
| 60 const CryptoTag kORBT = MAKE_TAG('O', 'B', 'I', 'T'); // Server orbit. |
60 | 61 |
61 const size_t kMaxEntries = 16; // Max number of entries in a message. | 62 const size_t kMaxEntries = 16; // Max number of entries in a message. |
62 | 63 |
63 const size_t kNonceSize = 32; // Size in bytes of the connection nonce. | 64 const size_t kNonceSize = 32; // Size in bytes of the connection nonce. |
64 | 65 |
| 66 const size_t kOrbitSize = 8; // Number of bytes in an orbit value. |
| 67 |
65 } // namespace net | 68 } // namespace net |
66 | 69 |
67 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ | 70 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ |
OLD | NEW |