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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 OCSP_UNAUTHORIZED, | 72 OCSP_UNAUTHORIZED, |
73 OCSP_UNKNOWN, | 73 OCSP_UNKNOWN, |
74 }; | 74 }; |
75 | 75 |
76 // Bitmask of key exchange algorithms that the test server supports and that | 76 // Bitmask of key exchange algorithms that the test server supports and that |
77 // can be selectively enabled or disabled. | 77 // can be selectively enabled or disabled. |
78 enum KeyExchange { | 78 enum KeyExchange { |
79 // Special value used to indicate that any algorithm the server supports | 79 // Special value used to indicate that any algorithm the server supports |
80 // is acceptable. Preferred over explicitly OR-ing all key exchange | 80 // is acceptable. Preferred over explicitly OR-ing all key exchange |
81 // algorithms. | 81 // algorithms. |
82 KEY_EXCHANGE_ANY = 0, | 82 KEY_EXCHANGE_ANY = 0, |
83 | 83 |
84 KEY_EXCHANGE_RSA = (1 << 0), | 84 KEY_EXCHANGE_RSA = (1 << 0), |
85 KEY_EXCHANGE_DHE_RSA = (1 << 1), | 85 KEY_EXCHANGE_DHE_RSA = (1 << 1), |
| 86 KEY_EXCHANGE_ECDHE_RSA = (1 << 2), |
86 }; | 87 }; |
87 | 88 |
88 // Bitmask of bulk encryption algorithms that the test server supports | 89 // Bitmask of bulk encryption algorithms that the test server supports |
89 // and that can be selectively enabled or disabled. | 90 // and that can be selectively enabled or disabled. |
90 enum BulkCipher { | 91 enum BulkCipher { |
91 // Special value used to indicate that any algorithm the server supports | 92 // Special value used to indicate that any algorithm the server supports |
92 // is acceptable. Preferred over explicitly OR-ing all ciphers. | 93 // is acceptable. Preferred over explicitly OR-ing all ciphers. |
93 BULK_CIPHER_ANY = 0, | 94 BULK_CIPHER_ANY = 0, |
94 | 95 |
95 BULK_CIPHER_RC4 = (1 << 0), | 96 BULK_CIPHER_RC4 = (1 << 0), |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 bool ws_basic_auth_; | 328 bool ws_basic_auth_; |
328 | 329 |
329 scoped_ptr<ScopedPortException> allowed_port_; | 330 scoped_ptr<ScopedPortException> allowed_port_; |
330 | 331 |
331 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); | 332 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); |
332 }; | 333 }; |
333 | 334 |
334 } // namespace net | 335 } // namespace net |
335 | 336 |
336 #endif // NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ | 337 #endif // NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ |
OLD | NEW |