| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/quic_crypto_client_stream.h" | 5 #include "net/quic/core/quic_crypto_client_stream.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/metrics/histogram_macros.h" | 10 #include "base/metrics/histogram_macros.h" |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 } | 164 } |
| 165 | 165 |
| 166 void QuicCryptoClientStream::HandleServerConfigUpdateMessage( | 166 void QuicCryptoClientStream::HandleServerConfigUpdateMessage( |
| 167 const CryptoHandshakeMessage& server_config_update) { | 167 const CryptoHandshakeMessage& server_config_update) { |
| 168 DCHECK(server_config_update.tag() == kSCUP); | 168 DCHECK(server_config_update.tag() == kSCUP); |
| 169 string error_details; | 169 string error_details; |
| 170 QuicCryptoClientConfig::CachedState* cached = | 170 QuicCryptoClientConfig::CachedState* cached = |
| 171 crypto_config_->LookupOrCreate(server_id_); | 171 crypto_config_->LookupOrCreate(server_id_); |
| 172 QuicErrorCode error = crypto_config_->ProcessServerConfigUpdate( | 172 QuicErrorCode error = crypto_config_->ProcessServerConfigUpdate( |
| 173 server_config_update, session()->connection()->clock()->WallNow(), | 173 server_config_update, session()->connection()->clock()->WallNow(), |
| 174 session()->connection()->version(), cached->chlo_hash(), cached, | 174 session()->connection()->version(), chlo_hash_, cached, |
| 175 crypto_negotiated_params_, &error_details); | 175 crypto_negotiated_params_, &error_details); |
| 176 | 176 |
| 177 if (error != QUIC_NO_ERROR) { | 177 if (error != QUIC_NO_ERROR) { |
| 178 CloseConnectionWithDetails( | 178 CloseConnectionWithDetails( |
| 179 error, "Server config update invalid: " + error_details); | 179 error, "Server config update invalid: " + error_details); |
| 180 return; | 180 return; |
| 181 } | 181 } |
| 182 | 182 |
| 183 DCHECK(handshake_confirmed()); | 183 DCHECK(handshake_confirmed()); |
| 184 if (proof_verify_callback_) { | 184 if (proof_verify_callback_) { |
| (...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 668 } | 668 } |
| 669 for (size_t i = 0; i < num_their_proof_demands; i++) { | 669 for (size_t i = 0; i < num_their_proof_demands; i++) { |
| 670 if (their_proof_demands[i] == kCHID) { | 670 if (their_proof_demands[i] == kCHID) { |
| 671 return true; | 671 return true; |
| 672 } | 672 } |
| 673 } | 673 } |
| 674 return false; | 674 return false; |
| 675 } | 675 } |
| 676 | 676 |
| 677 } // namespace net | 677 } // namespace net |
| OLD | NEW |