| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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_QUIC_CRYPTO_SERVER_CONFIG_H_ | 5 #ifndef NET_QUIC_CRYPTO_QUIC_CRYPTO_SERVER_CONFIG_H_ |
| 6 #define NET_QUIC_CRYPTO_QUIC_CRYPTO_SERVER_CONFIG_H_ | 6 #define NET_QUIC_CRYPTO_QUIC_CRYPTO_SERVER_CONFIG_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 508 void EvaluateClientHello( | 508 void EvaluateClientHello( |
| 509 const IPAddress& server_ip, | 509 const IPAddress& server_ip, |
| 510 QuicVersion version, | 510 QuicVersion version, |
| 511 const uint8_t* primary_orbit, | 511 const uint8_t* primary_orbit, |
| 512 scoped_refptr<Config> requested_config, | 512 scoped_refptr<Config> requested_config, |
| 513 scoped_refptr<Config> primary_config, | 513 scoped_refptr<Config> primary_config, |
| 514 QuicCryptoProof* crypto_proof, | 514 QuicCryptoProof* crypto_proof, |
| 515 ValidateClientHelloResultCallback::Result* client_hello_state, | 515 ValidateClientHelloResultCallback::Result* client_hello_state, |
| 516 ValidateClientHelloResultCallback* done_cb) const; | 516 ValidateClientHelloResultCallback* done_cb) const; |
| 517 | 517 |
| 518 // Callback class for bridging between EvaluateClientHello and |
| 519 // EvaluateClientHelloAfterGetProof |
| 520 friend class EvaluateClientHelloCallback; |
| 521 |
| 522 // Continuation of EvaluateClientHello after the call to |
| 523 // ProofSource::GetProof. |found_error| indicates whether an error was |
| 524 // detected in EvaluateClientHello, and |get_proof_failed| indicates whether |
| 525 // GetProof failed. If GetProof was not run, then |get_proof_failed| will be |
| 526 // set to false. |
| 527 void EvaluateClientHelloAfterGetProof( |
| 528 bool found_error, |
| 529 const IPAddress& server_ip, |
| 530 QuicVersion version, |
| 531 const uint8_t* primary_orbit, |
| 532 scoped_refptr<Config> requested_config, |
| 533 scoped_refptr<Config> primary_config, |
| 534 QuicCryptoProof* crypto_proof, |
| 535 bool get_proof_failed, |
| 536 ValidateClientHelloResultCallback::Result* client_hello_state, |
| 537 ValidateClientHelloResultCallback* done_cb) const; |
| 538 |
| 518 // BuildRejection sets |out| to be a REJ message in reply to |client_hello|. | 539 // BuildRejection sets |out| to be a REJ message in reply to |client_hello|. |
| 519 void BuildRejection(QuicVersion version, | 540 void BuildRejection(QuicVersion version, |
| 520 const Config& config, | 541 const Config& config, |
| 521 const CryptoHandshakeMessage& client_hello, | 542 const CryptoHandshakeMessage& client_hello, |
| 522 const ClientHelloInfo& info, | 543 const ClientHelloInfo& info, |
| 523 const CachedNetworkParameters& cached_network_params, | 544 const CachedNetworkParameters& cached_network_params, |
| 524 bool use_stateless_rejects, | 545 bool use_stateless_rejects, |
| 525 QuicConnectionId server_designated_connection_id, | 546 QuicConnectionId server_designated_connection_id, |
| 526 QuicRandom* rand, | 547 QuicRandom* rand, |
| 527 QuicCompressedCertsCache* compressed_certs_cache, | 548 QuicCompressedCertsCache* compressed_certs_cache, |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 760 std::string cert_sct; | 781 std::string cert_sct; |
| 761 // The server config that is used for this proof (and the rest of the | 782 // The server config that is used for this proof (and the rest of the |
| 762 // request). | 783 // request). |
| 763 scoped_refptr<QuicCryptoServerConfig::Config> config; | 784 scoped_refptr<QuicCryptoServerConfig::Config> config; |
| 764 std::string primary_scid; | 785 std::string primary_scid; |
| 765 }; | 786 }; |
| 766 | 787 |
| 767 } // namespace net | 788 } // namespace net |
| 768 | 789 |
| 769 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_SERVER_CONFIG_H_ | 790 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_SERVER_CONFIG_H_ |
| OLD | NEW |