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/quic_crypto_server_stream.h" | 5 #include "net/quic/quic_crypto_server_stream.h" |
6 | 6 |
7 #include "base/base64.h" | 7 #include "base/base64.h" |
8 #include "crypto/secure_hash.h" | 8 #include "crypto/secure_hash.h" |
9 #include "net/quic/crypto/crypto_protocol.h" | 9 #include "net/quic/crypto/crypto_protocol.h" |
10 #include "net/quic/crypto/crypto_utils.h" | 10 #include "net/quic/crypto/crypto_utils.h" |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 } | 180 } |
181 | 181 |
182 void QuicCryptoServerStream::SendServerConfigUpdate( | 182 void QuicCryptoServerStream::SendServerConfigUpdate( |
183 const CachedNetworkParameters* cached_network_params) { | 183 const CachedNetworkParameters* cached_network_params) { |
184 if (!handshake_confirmed_) { | 184 if (!handshake_confirmed_) { |
185 return; | 185 return; |
186 } | 186 } |
187 | 187 |
188 CryptoHandshakeMessage server_config_update_message; | 188 CryptoHandshakeMessage server_config_update_message; |
189 if (!crypto_config_->BuildServerConfigUpdateMessage( | 189 if (!crypto_config_->BuildServerConfigUpdateMessage( |
190 previous_source_address_tokens_, | 190 session()->connection()->version(), previous_source_address_tokens_, |
191 session()->connection()->self_address().address(), | 191 session()->connection()->self_address().address(), |
192 session()->connection()->peer_address().address(), | 192 session()->connection()->peer_address().address(), |
193 session()->connection()->clock(), | 193 session()->connection()->clock(), |
194 session()->connection()->random_generator(), | 194 session()->connection()->random_generator(), |
195 crypto_negotiated_params_, cached_network_params, | 195 crypto_negotiated_params_, cached_network_params, |
196 &server_config_update_message)) { | 196 &server_config_update_message)) { |
197 DVLOG(1) << "Server: Failed to build server config update (SCUP)!"; | 197 DVLOG(1) << "Server: Failed to build server config update (SCUP)!"; |
198 return; | 198 return; |
199 } | 199 } |
200 | 200 |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 } | 319 } |
320 for (size_t i = 0; i < received_tags_length; ++i) { | 320 for (size_t i = 0; i < received_tags_length; ++i) { |
321 if (received_tags[i] == kSREJ) { | 321 if (received_tags[i] == kSREJ) { |
322 return true; | 322 return true; |
323 } | 323 } |
324 } | 324 } |
325 return false; | 325 return false; |
326 } | 326 } |
327 | 327 |
328 } // namespace net | 328 } // namespace net |
OLD | NEW |