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

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

Issue 15018013: Revert 198736 "Land Recent QUIC changes" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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
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
77 75
78 #undef TAG 76 #undef TAG
79 77
80 const size_t kMaxEntries = 128; // Max number of entries in a message. 78 const size_t kMaxEntries = 128; // Max number of entries in a message.
81 79
82 const size_t kNonceSize = 32; // Size in bytes of the connection nonce. 80 const size_t kNonceSize = 32; // Size in bytes of the connection nonce.
83 81
84 const size_t kOrbitSize = 8; // Number of bytes in an orbit value. 82 const size_t kOrbitSize = 8; // Number of bytes in an orbit value.
85 83
86 // kProofSignatureLabel is prepended to server configs before signing to avoid 84 // kProofSignatureLabel is prepended to server configs before signing to avoid
87 // any cross-protocol attacks on the signature. 85 // any cross-protocol attacks on the signature.
88 const char kProofSignatureLabel[] = "QUIC server config signature"; 86 const char kProofSignatureLabel[] = "QUIC server config signature";
89 87
90 } // namespace net 88 } // namespace net
91 89
92 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ 90 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_
OLDNEW
« no previous file with comments | « trunk/src/net/quic/crypto/crypto_handshake.cc ('k') | trunk/src/net/quic/crypto/crypto_server_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698