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

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

Issue 875683002: Implement AES-GCM in tlslite. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | net/test/spawned_test_server/base_test_server.cc » ('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 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }; 86 };
87 87
88 // Bitmask of bulk encryption algorithms that the test server supports 88 // Bitmask of bulk encryption algorithms that the test server supports
89 // and that can be selectively enabled or disabled. 89 // and that can be selectively enabled or disabled.
90 enum BulkCipher { 90 enum BulkCipher {
91 // Special value used to indicate that any algorithm the server supports 91 // Special value used to indicate that any algorithm the server supports
92 // is acceptable. Preferred over explicitly OR-ing all ciphers. 92 // is acceptable. Preferred over explicitly OR-ing all ciphers.
93 BULK_CIPHER_ANY = 0, 93 BULK_CIPHER_ANY = 0,
94 94
95 BULK_CIPHER_RC4 = (1 << 0), 95 BULK_CIPHER_RC4 = (1 << 0),
96 BULK_CIPHER_AES128 = (1 << 1), 96 BULK_CIPHER_AES128 = (1 << 1),
97 BULK_CIPHER_AES256 = (1 << 2), 97 BULK_CIPHER_AES256 = (1 << 2),
98 98
99 // NOTE: 3DES support in the Python test server has external 99 // NOTE: 3DES support in the Python test server has external
100 // dependencies and not be available on all machines. Clients may not 100 // dependencies and not be available on all machines. Clients may not
101 // be able to connect if only 3DES is specified. 101 // be able to connect if only 3DES is specified.
102 BULK_CIPHER_3DES = (1 << 3), 102 BULK_CIPHER_3DES = (1 << 3),
103
104 BULK_CIPHER_AES128GCM = (1 << 4),
103 }; 105 };
104 106
105 // NOTE: the values of these enumerators are passed to the the Python test 107 // NOTE: the values of these enumerators are passed to the the Python test
106 // server. Do not change them. 108 // server. Do not change them.
107 enum TLSIntolerantLevel { 109 enum TLSIntolerantLevel {
108 TLS_INTOLERANT_NONE = 0, 110 TLS_INTOLERANT_NONE = 0,
109 TLS_INTOLERANT_ALL = 1, // Intolerant of all TLS versions. 111 TLS_INTOLERANT_ALL = 1, // Intolerant of all TLS versions.
110 TLS_INTOLERANT_TLS1_1 = 2, // Intolerant of TLS 1.1 or higher. 112 TLS_INTOLERANT_TLS1_1 = 2, // Intolerant of TLS 1.1 or higher.
111 TLS_INTOLERANT_TLS1_2 = 3, // Intolerant of TLS 1.2 or higher. 113 TLS_INTOLERANT_TLS1_2 = 3, // Intolerant of TLS 1.2 or higher.
112 }; 114 };
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 bool ws_basic_auth_; 329 bool ws_basic_auth_;
328 330
329 scoped_ptr<ScopedPortException> allowed_port_; 331 scoped_ptr<ScopedPortException> allowed_port_;
330 332
331 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); 333 DISALLOW_COPY_AND_ASSIGN(BaseTestServer);
332 }; 334 };
333 335
334 } // namespace net 336 } // namespace net
335 337
336 #endif // NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ 338 #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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698