Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(703)

Side by Side Diff: net/quic/quic_crypto_server_stream.cc

Issue 1416583005: Add support of serving SCT on the server side in QUIC, gated by QUIC_VERSION_30. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@106687764
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/crypto/quic_crypto_server_config.cc ('k') | net/quic/quic_protocol.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « net/quic/crypto/quic_crypto_server_config.cc ('k') | net/quic/quic_protocol.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698