| 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 #include "net/quic/core/crypto/quic_crypto_server_config.h" | 5 #include "net/quic/core/crypto/quic_crypto_server_config.h" |
| 6 | 6 |
| 7 #include <stdlib.h> | 7 #include <stdlib.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 767 params->sct_supported_by_client = true; | 767 params->sct_supported_by_client = true; |
| 768 } | 768 } |
| 769 | 769 |
| 770 std::unique_ptr<CryptoHandshakeMessage> out(new CryptoHandshakeMessage); | 770 std::unique_ptr<CryptoHandshakeMessage> out(new CryptoHandshakeMessage); |
| 771 if (!info.reject_reasons.empty() || !requested_config.get()) { | 771 if (!info.reject_reasons.empty() || !requested_config.get()) { |
| 772 BuildRejection(version, clock->WallNow(), *primary_config, client_hello, | 772 BuildRejection(version, clock->WallNow(), *primary_config, client_hello, |
| 773 info, validate_chlo_result.cached_network_params, | 773 info, validate_chlo_result.cached_network_params, |
| 774 use_stateless_rejects, server_designated_connection_id, rand, | 774 use_stateless_rejects, server_designated_connection_id, rand, |
| 775 compressed_certs_cache, params, *signed_config, | 775 compressed_certs_cache, params, *signed_config, |
| 776 total_framing_overhead, chlo_packet_size, out.get()); | 776 total_framing_overhead, chlo_packet_size, out.get()); |
| 777 if (FLAGS_quic_reloadable_flag_quic_export_rej_for_all_rejects && | 777 if (rejection_observer_ != nullptr) { |
| 778 rejection_observer_ != nullptr) { | |
| 779 rejection_observer_->OnRejectionBuilt(info.reject_reasons, out.get()); | 778 rejection_observer_->OnRejectionBuilt(info.reject_reasons, out.get()); |
| 780 } | 779 } |
| 781 helper.Succeed(std::move(out), std::move(out_diversification_nonce), | 780 helper.Succeed(std::move(out), std::move(out_diversification_nonce), |
| 782 std::move(proof_source_details)); | 781 std::move(proof_source_details)); |
| 783 return; | 782 return; |
| 784 } | 783 } |
| 785 | 784 |
| 786 if (reject_only) { | 785 if (reject_only) { |
| 787 helper.Succeed(std::move(out), std::move(out_diversification_nonce), | 786 helper.Succeed(std::move(out), std::move(out_diversification_nonce), |
| 788 std::move(proof_source_details)); | 787 std::move(proof_source_details)); |
| (...skipping 1237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2026 expiry_time(QuicWallTime::Zero()), | 2025 expiry_time(QuicWallTime::Zero()), |
| 2027 priority(0), | 2026 priority(0), |
| 2028 source_address_token_boxer(nullptr) {} | 2027 source_address_token_boxer(nullptr) {} |
| 2029 | 2028 |
| 2030 QuicCryptoServerConfig::Config::~Config() {} | 2029 QuicCryptoServerConfig::Config::~Config() {} |
| 2031 | 2030 |
| 2032 QuicSignedServerConfig::QuicSignedServerConfig() {} | 2031 QuicSignedServerConfig::QuicSignedServerConfig() {} |
| 2033 QuicSignedServerConfig::~QuicSignedServerConfig() {} | 2032 QuicSignedServerConfig::~QuicSignedServerConfig() {} |
| 2034 | 2033 |
| 2035 } // namespace net | 2034 } // namespace net |
| OLD | NEW |