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

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

Issue 23019005: Clear the QUIC cached proof when a client receives a REJ w/o a PROF tag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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.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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 QuicWallTime now, 259 QuicWallTime now,
260 std::string* error_details); 260 std::string* error_details);
261 261
262 // InvalidateServerConfig clears the cached server config (if any). 262 // InvalidateServerConfig clears the cached server config (if any).
263 void InvalidateServerConfig(); 263 void InvalidateServerConfig();
264 264
265 // SetProof stores a certificate chain and signature. 265 // SetProof stores a certificate chain and signature.
266 void SetProof(const std::vector<std::string>& certs, 266 void SetProof(const std::vector<std::string>& certs,
267 base::StringPiece signature); 267 base::StringPiece signature);
268 268
269 void ClearProof();
wtc 2013/08/14 23:48:42 Please add a comment.
Ryan Hamilton 2013/08/15 03:27:07 Done.
270
269 // SetProofValid records that the certificate chain and signature have been 271 // SetProofValid records that the certificate chain and signature have been
270 // validated and that it's safe to assume that the server is legitimate. 272 // validated and that it's safe to assume that the server is legitimate.
271 // (Note: this does not check the chain or signature.) 273 // (Note: this does not check the chain or signature.)
272 void SetProofValid(); 274 void SetProofValid();
273 275
274 // If the server config or the proof has changed then it needs to be 276 // If the server config or the proof has changed then it needs to be
275 // revalidated. Helper function to keep server_config_valid_ and 277 // revalidated. Helper function to keep server_config_valid_ and
276 // generation_counter_ in sync. 278 // generation_counter_ in sync.
277 void SetProofInvalid(); 279 void SetProofInvalid();
278 280
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 392
391 scoped_ptr<ProofVerifier> proof_verifier_; 393 scoped_ptr<ProofVerifier> proof_verifier_;
392 scoped_ptr<ChannelIDSigner> channel_id_signer_; 394 scoped_ptr<ChannelIDSigner> channel_id_signer_;
393 395
394 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientConfig); 396 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientConfig);
395 }; 397 };
396 398
397 } // namespace net 399 } // namespace net
398 400
399 #endif // NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_ 401 #endif // NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/crypto/crypto_handshake.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698