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

Side by Side Diff: net/test/spawned_test_server/base_test_server.h

Issue 109563002: net: add test for TLS_FALLBACK_SCSV (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Typo fix. Created 7 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ 5 #ifndef NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_
6 #define NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ 6 #define NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 141
142 // If true, pass the --https-record-resume argument to testserver.py which 142 // If true, pass the --https-record-resume argument to testserver.py which
143 // causes it to log session cache actions and echo the log on 143 // causes it to log session cache actions and echo the log on
144 // /ssl-session-cache. 144 // /ssl-session-cache.
145 bool record_resume; 145 bool record_resume;
146 146
147 // If not TLS_INTOLERANT_NONE, the server will abort any handshake that 147 // If not TLS_INTOLERANT_NONE, the server will abort any handshake that
148 // negotiates an intolerant TLS version in order to test version fallback. 148 // negotiates an intolerant TLS version in order to test version fallback.
149 TLSIntolerantLevel tls_intolerant; 149 TLSIntolerantLevel tls_intolerant;
150 150
151 // fallback_scsv_enabled, if true, causes the server to process the
152 // TLS_FALLBACK_SCSV cipher suite. This cipher suite is sent by Chrome
153 // when performing TLS version fallback in response to an SSL handshake
154 // failure. If this option is enabled then the server will reject fallback
155 // connections.
156 bool fallback_scsv_enabled;
157
151 // (Fake) SignedCertificateTimestampList (as a raw binary string) to send in 158 // (Fake) SignedCertificateTimestampList (as a raw binary string) to send in
152 // a TLS extension. 159 // a TLS extension.
153 // Temporary glue for testing: validation of SCTs is application-controlled 160 // Temporary glue for testing: validation of SCTs is application-controlled
154 // and can be appropriately mocked out, so sending fake data here does not 161 // and can be appropriately mocked out, so sending fake data here does not
155 // affect handshaking behaviour. 162 // affect handshaking behaviour.
156 // TODO(ekasper): replace with valid SCT files for test certs. 163 // TODO(ekasper): replace with valid SCT files for test certs.
157 std::string signed_cert_timestamps; 164 std::string signed_cert_timestamps;
158 }; 165 };
159 166
160 // Pass as the 'host' parameter during construction to server on 127.0.0.1 167 // Pass as the 'host' parameter during construction to server on 127.0.0.1
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 bool log_to_console_; 268 bool log_to_console_;
262 269
263 scoped_ptr<ScopedPortException> allowed_port_; 270 scoped_ptr<ScopedPortException> allowed_port_;
264 271
265 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); 272 DISALLOW_COPY_AND_ASSIGN(BaseTestServer);
266 }; 273 };
267 274
268 } // namespace net 275 } // namespace net
269 276
270 #endif // NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ 277 #endif // NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_
OLDNEW
« no previous file with comments | « no previous file | net/test/spawned_test_server/base_test_server.cc » ('j') | third_party/tlslite/tlslite/TLSConnection.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698