Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 // (Fake) SignedCertificateTimestampList (as a raw binary string) to send in | 151 // (Fake) SignedCertificateTimestampList (as a raw binary string) to send in |
| 152 // a TLS extension. | 152 // a TLS extension. |
| 153 // Temporary glue for testing: validation of SCTs is application-controlled | 153 // Temporary glue for testing: validation of SCTs is application-controlled |
| 154 // and can be appropriately mocked out, so sending fake data here does not | 154 // and can be appropriately mocked out, so sending fake data here does not |
| 155 // affect handshaking behaviour. | 155 // affect handshaking behaviour. |
| 156 // TODO(ekasper): replace with valid SCT files for test certs. | 156 // TODO(ekasper): replace with valid SCT files for test certs. |
| 157 std::string signed_cert_timestamps; | 157 std::string signed_cert_timestamps; |
| 158 | |
| 159 // fallback_scsv_enabled, if true, causes the server to process | |
| 160 // TLS_FALLBACK_SCSV cipher suites. This cipher suite is sent by Chrome | |
|
wtc
2013/12/10 16:28:27
Nit: "cipher suites" should be singular. There is
agl
2013/12/10 17:53:43
Done.
| |
| 161 // when performing TLS version fallback in response to an SSL handshake | |
| 162 // failure. If this option is enabled then the server will reject fallback | |
| 163 // connections. | |
| 164 bool fallback_scsv_enabled; | |
|
wtc
2013/12/10 16:28:27
Emilia is adding a new option for OCSP stapling he
agl
2013/12/10 17:53:43
Done.
| |
| 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 |
| 161 static const char kLocalhost[]; | 168 static const char kLocalhost[]; |
| 162 | 169 |
| 163 // Initialize a TestServer listening on a specific host (IP or hostname). | 170 // Initialize a TestServer listening on a specific host (IP or hostname). |
| 164 BaseTestServer(Type type, const std::string& host); | 171 BaseTestServer(Type type, const std::string& host); |
| 165 | 172 |
| 166 // Initialize a TestServer with a specific set of SSLOptions for HTTPS or WSS. | 173 // Initialize a TestServer with a specific set of SSLOptions for HTTPS or WSS. |
| 167 explicit BaseTestServer(Type type, const SSLOptions& ssl_options); | 174 explicit BaseTestServer(Type type, const SSLOptions& ssl_options); |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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_ |
| OLD | NEW |