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

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

Issue 159143007: Log QUIC public reset client address mismatch to a histogram. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Address review comments Created 6 years, 10 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 | « no previous file | net/quic/crypto/crypto_handshake_message.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_HANDSHAKE_H_ 5 #ifndef NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_
6 #define NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_ 6 #define NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // sending a client hello. 52 // sending a client hello.
53 std::vector<std::string> cached_certs; 53 std::vector<std::string> cached_certs;
54 // client_key_exchange is used by clients to store the ephemeral KeyExchange 54 // client_key_exchange is used by clients to store the ephemeral KeyExchange
55 // for the connection. 55 // for the connection.
56 scoped_ptr<KeyExchange> client_key_exchange; 56 scoped_ptr<KeyExchange> client_key_exchange;
57 // channel_id is set by servers to a ChannelID key when the client correctly 57 // channel_id is set by servers to a ChannelID key when the client correctly
58 // proves possession of the corresponding private key. It consists of 32 58 // proves possession of the corresponding private key. It consists of 32
59 // bytes of x coordinate, followed by 32 bytes of y coordinate. Both values 59 // bytes of x coordinate, followed by 32 bytes of y coordinate. Both values
60 // are big-endian and the pair is a P-256 public key. 60 // are big-endian and the pair is a P-256 public key.
61 std::string channel_id; 61 std::string channel_id;
62 // client_address is set by clients to the kCADR value provided by the server
63 // in ServerHello. It is a serialized form of an IP address and port.
64 std::string client_address;
65 }; 62 };
66 63
67 // QuicCryptoConfig contains common configuration between clients and servers. 64 // QuicCryptoConfig contains common configuration between clients and servers.
68 class NET_EXPORT_PRIVATE QuicCryptoConfig { 65 class NET_EXPORT_PRIVATE QuicCryptoConfig {
69 public: 66 public:
70 // kInitialLabel is a constant that is used when deriving the initial 67 // kInitialLabel is a constant that is used when deriving the initial
71 // (non-forward secure) keys for the connection in order to tie the resulting 68 // (non-forward secure) keys for the connection in order to tie the resulting
72 // key to this protocol. 69 // key to this protocol.
73 static const char kInitialLabel[]; 70 static const char kInitialLabel[];
74 71
(...skipping 17 matching lines...) Expand all
92 89
93 const CommonCertSets* common_cert_sets; 90 const CommonCertSets* common_cert_sets;
94 91
95 private: 92 private:
96 DISALLOW_COPY_AND_ASSIGN(QuicCryptoConfig); 93 DISALLOW_COPY_AND_ASSIGN(QuicCryptoConfig);
97 }; 94 };
98 95
99 } // namespace net 96 } // namespace net
100 97
101 #endif // NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_ 98 #endif // NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/crypto/crypto_handshake_message.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698