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

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

Issue 1574633002: relnote: Re-enable strike register lookups for QUIC replay protection, until at least QUIC_VERSION_… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@07_CL_111570157
Patch Set: Created 4 years, 11 months 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') | no next file » | 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 <map> 7 #include <map>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 QuicTime::Delta::FromSeconds(100000), 138 QuicTime::Delta::FromSeconds(100000),
139 supported_versions_, 139 supported_versions_,
140 140
141 helpers_.back(), &client_crypto_config_, 141 helpers_.back(), &client_crypto_config_,
142 &client_connection_, &client_session); 142 &client_connection_, &client_session);
143 CHECK(client_session); 143 CHECK(client_session);
144 client_session_.reset(client_session); 144 client_session_.reset(client_session);
145 } 145 }
146 146
147 bool AsyncStrikeRegisterVerification() { 147 bool AsyncStrikeRegisterVerification() {
148 if (server_connection_->version() > QUIC_VERSION_26) { 148 if (server_connection_->version() > QUIC_VERSION_30) {
149 return false; 149 return false;
150 } 150 }
151 return GetParam(); 151 return GetParam();
152 } 152 }
153 153
154 void ConstructHandshakeMessage() { 154 void ConstructHandshakeMessage() {
155 CryptoFramer framer; 155 CryptoFramer framer;
156 message_data_.reset(framer.ConstructHandshakeMessage(message_)); 156 message_data_.reset(framer.ConstructHandshakeMessage(message_));
157 } 157 }
158 158
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 /*from_peer=*/true); 517 /*from_peer=*/true);
518 518
519 // The outstanding nonce verification RPC now completes. 519 // The outstanding nonce verification RPC now completes.
520 strike_register_client_->RunPendingVerifications(); 520 strike_register_client_->RunPendingVerifications();
521 } 521 }
522 522
523 } // namespace 523 } // namespace
524 524
525 } // namespace test 525 } // namespace test
526 } // namespace net 526 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/crypto/quic_crypto_server_config.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698