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

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: Fix comments 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') | net/quic/crypto/crypto_handshake.cc » ('J')
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 // Clears the certificate chain and signature and invalidates the proof.
270 void ClearProof();
271
269 // SetProofValid records that the certificate chain and signature have been 272 // SetProofValid records that the certificate chain and signature have been
270 // validated and that it's safe to assume that the server is legitimate. 273 // validated and that it's safe to assume that the server is legitimate.
271 // (Note: this does not check the chain or signature.) 274 // (Note: this does not check the chain or signature.)
272 void SetProofValid(); 275 void SetProofValid();
273 276
274 // If the server config or the proof has changed then it needs to be 277 // If the server config or the proof has changed then it needs to be
275 // revalidated. Helper function to keep server_config_valid_ and 278 // revalidated. Helper function to keep server_config_valid_ and
276 // generation_counter_ in sync. 279 // generation_counter_ in sync.
277 void SetProofInvalid(); 280 void SetProofInvalid();
278 281
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 393
391 scoped_ptr<ProofVerifier> proof_verifier_; 394 scoped_ptr<ProofVerifier> proof_verifier_;
392 scoped_ptr<ChannelIDSigner> channel_id_signer_; 395 scoped_ptr<ChannelIDSigner> channel_id_signer_;
393 396
394 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientConfig); 397 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientConfig);
395 }; 398 };
396 399
397 } // namespace net 400 } // namespace net
398 401
399 #endif // NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_ 402 #endif // NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/crypto/crypto_handshake.cc » ('j') | net/quic/crypto/crypto_handshake.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698