Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 Loading... | |
| 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_ |
| OLD | NEW |