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_client_stream.h" | 5 #include "net/quic/quic_crypto_client_stream.h" |
6 | 6 |
7 #include "net/quic/crypto/crypto_protocol.h" | 7 #include "net/quic/crypto/crypto_protocol.h" |
8 #include "net/quic/crypto/crypto_utils.h" | 8 #include "net/quic/crypto/crypto_utils.h" |
9 #include "net/quic/crypto/null_encrypter.h" | 9 #include "net/quic/crypto/null_encrypter.h" |
10 #include "net/quic/crypto/proof_verifier.h" | 10 #include "net/quic/crypto/proof_verifier.h" |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 next_state_ = STATE_RECV_REJ; | 148 next_state_ = STATE_RECV_REJ; |
149 DVLOG(1) << "Client: Sending " << out.DebugString(); | 149 DVLOG(1) << "Client: Sending " << out.DebugString(); |
150 SendHandshakeMessage(out); | 150 SendHandshakeMessage(out); |
151 return; | 151 return; |
152 } | 152 } |
153 session()->config()->ToHandshakeMessage(&out); | 153 session()->config()->ToHandshakeMessage(&out); |
154 error = crypto_config_->FillClientHello( | 154 error = crypto_config_->FillClientHello( |
155 server_id_, | 155 server_id_, |
156 session()->connection()->connection_id(), | 156 session()->connection()->connection_id(), |
157 session()->connection()->supported_versions().front(), | 157 session()->connection()->supported_versions().front(), |
158 session()->connection()->max_flow_control_receive_window_bytes(), | 158 session()->max_flow_control_receive_window_bytes(), |
159 cached, | 159 cached, |
160 session()->connection()->clock()->WallNow(), | 160 session()->connection()->clock()->WallNow(), |
161 session()->connection()->random_generator(), | 161 session()->connection()->random_generator(), |
162 &crypto_negotiated_params_, | 162 &crypto_negotiated_params_, |
163 &out, | 163 &out, |
164 &error_details); | 164 &error_details); |
165 if (error != QUIC_NO_ERROR) { | 165 if (error != QUIC_NO_ERROR) { |
166 // Flush the cached config so that, if it's bad, the server has a | 166 // Flush the cached config so that, if it's bad, the server has a |
167 // chance to send us another in the future. | 167 // chance to send us another in the future. |
168 cached->InvalidateServerConfig(); | 168 cached->InvalidateServerConfig(); |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 QuicCryptoClientConfig::CachedState* cached) { | 358 QuicCryptoClientConfig::CachedState* cached) { |
359 cached->SetProofValid(); | 359 cached->SetProofValid(); |
360 client_session()->OnProofValid(*cached); | 360 client_session()->OnProofValid(*cached); |
361 } | 361 } |
362 | 362 |
363 QuicClientSessionBase* QuicCryptoClientStream::client_session() { | 363 QuicClientSessionBase* QuicCryptoClientStream::client_session() { |
364 return reinterpret_cast<QuicClientSessionBase*>(session()); | 364 return reinterpret_cast<QuicClientSessionBase*>(session()); |
365 } | 365 } |
366 | 366 |
367 } // namespace net | 367 } // namespace net |
OLD | NEW |