Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(285)

Side by Side Diff: net/quic/crypto/crypto_protocol.h

Issue 14651009: Land Recent QUIC changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix integer constant is too large for 'unsigned long' type Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/quic/crypto/crypto_handshake.cc ('k') | net/quic/crypto/crypto_server_config.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 const CryptoTag kKATO = TAG('K', 'A', 'T', 'O'); // Keepalive timeout 65 const CryptoTag kKATO = TAG('K', 'A', 'T', 'O'); // Keepalive timeout
66 const CryptoTag kSNI = TAG('S', 'N', 'I', '\0'); // Server name 66 const CryptoTag kSNI = TAG('S', 'N', 'I', '\0'); // Server name
67 // indication 67 // indication
68 const CryptoTag kPUBS = TAG('P', 'U', 'B', 'S'); // Public key values 68 const CryptoTag kPUBS = TAG('P', 'U', 'B', 'S'); // Public key values
69 const CryptoTag kSCID = TAG('S', 'C', 'I', 'D'); // Server config id 69 const CryptoTag kSCID = TAG('S', 'C', 'I', 'D'); // Server config id
70 const CryptoTag kSRCT = TAG('S', 'R', 'C', 'T'); // Source-address token 70 const CryptoTag kSRCT = TAG('S', 'R', 'C', 'T'); // Source-address token
71 const CryptoTag kORBT = TAG('O', 'B', 'I', 'T'); // Server orbit. 71 const CryptoTag kORBT = TAG('O', 'B', 'I', 'T'); // Server orbit.
72 const CryptoTag kPDMD = TAG('P', 'D', 'M', 'D'); // Proof demand. 72 const CryptoTag kPDMD = TAG('P', 'D', 'M', 'D'); // Proof demand.
73 const CryptoTag kCERT = TAG('C', 'E', 'R', 'T'); // Certificate chain 73 const CryptoTag kCERT = TAG('C', 'E', 'R', 'T'); // Certificate chain
74 const CryptoTag kPROF = TAG('P', 'R', 'O', 'F'); // Proof (signature). 74 const CryptoTag kPROF = TAG('P', 'R', 'O', 'F'); // Proof (signature).
75 const CryptoTag kCCS = TAG('C', 'C', 'S', 0); // Common certificate set
76 const CryptoTag kCCRT = TAG('C', 'C', 'R', 'T'); // Cached certificate
75 77
76 #undef TAG 78 #undef TAG
77 79
78 const size_t kMaxEntries = 128; // Max number of entries in a message. 80 const size_t kMaxEntries = 128; // Max number of entries in a message.
79 81
80 const size_t kNonceSize = 32; // Size in bytes of the connection nonce. 82 const size_t kNonceSize = 32; // Size in bytes of the connection nonce.
81 83
82 const size_t kOrbitSize = 8; // Number of bytes in an orbit value. 84 const size_t kOrbitSize = 8; // Number of bytes in an orbit value.
83 85
84 // kProofSignatureLabel is prepended to server configs before signing to avoid 86 // kProofSignatureLabel is prepended to server configs before signing to avoid
85 // any cross-protocol attacks on the signature. 87 // any cross-protocol attacks on the signature.
86 const char kProofSignatureLabel[] = "QUIC server config signature"; 88 const char kProofSignatureLabel[] = "QUIC server config signature";
87 89
88 } // namespace net 90 } // namespace net
89 91
90 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ 92 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_
OLDNEW
« no previous file with comments | « net/quic/crypto/crypto_handshake.cc ('k') | net/quic/crypto/crypto_server_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698