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

Side by Side Diff: net/quic/quic_crypto_client_stream.h

Issue 1765603002: Add QUIC 31 in which the server's proof covers both the static server config as well as a hash of t… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 9 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
« no previous file with comments | « net/quic/crypto/quic_crypto_server_config.cc ('k') | net/quic/quic_crypto_client_stream.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_QUIC_CRYPTO_CLIENT_STREAM_H_ 5 #ifndef NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_
6 #define NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ 6 #define NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 // and the client config settings also allow sending a ChannelID. 202 // and the client config settings also allow sending a ChannelID.
203 bool RequiresChannelID(QuicCryptoClientConfig::CachedState* cached); 203 bool RequiresChannelID(QuicCryptoClientConfig::CachedState* cached);
204 204
205 State next_state_; 205 State next_state_;
206 // num_client_hellos_ contains the number of client hello messages that this 206 // num_client_hellos_ contains the number of client hello messages that this
207 // connection has sent. 207 // connection has sent.
208 int num_client_hellos_; 208 int num_client_hellos_;
209 209
210 QuicCryptoClientConfig* const crypto_config_; 210 QuicCryptoClientConfig* const crypto_config_;
211 211
212 // Client's connection nonce (4-byte timestamp + 28 random bytes) 212 // SHA-256 hash of the most recently sent CHLO.
213 std::string nonce_; 213 std::string chlo_hash_;
214
214 // Server's (hostname, port, is_https, privacy_mode) tuple. 215 // Server's (hostname, port, is_https, privacy_mode) tuple.
215 const QuicServerId server_id_; 216 const QuicServerId server_id_;
216 217
217 // Generation counter from QuicCryptoClientConfig's CachedState. 218 // Generation counter from QuicCryptoClientConfig's CachedState.
218 uint64_t generation_counter_; 219 uint64_t generation_counter_;
219 220
220 // True if a channel ID was sent. 221 // True if a channel ID was sent.
221 bool channel_id_sent_; 222 bool channel_id_sent_;
222 223
223 // True if channel_id_source_callback_ was run. 224 // True if channel_id_source_callback_ was run.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 bool stateless_reject_received_; 258 bool stateless_reject_received_;
258 259
259 base::TimeTicks proof_verify_start_time_; 260 base::TimeTicks proof_verify_start_time_;
260 261
261 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientStream); 262 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientStream);
262 }; 263 };
263 264
264 } // namespace net 265 } // namespace net
265 266
266 #endif // NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ 267 #endif // NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_
OLDNEW
« no previous file with comments | « net/quic/crypto/quic_crypto_server_config.cc ('k') | net/quic/quic_crypto_client_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698