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

Side by Side Diff: net/test/test_server.h

Issue 6804032: Add TLS-SRP (RFC 5054) support Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: remove "httpsv" scheme, minor NSS/OpenSSL changes Created 9 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « net/test/openssl_helper.cc ('k') | net/test/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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_TEST_SERVER_H_ 5 #ifndef NET_TEST_TEST_SERVER_H_
6 #define NET_TEST_TEST_SERVER_H_ 6 #define NET_TEST_TEST_SERVER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // If |request_client_certificate| is true, an optional list of files, 91 // If |request_client_certificate| is true, an optional list of files,
92 // each containing a single, PEM-encoded X.509 certificates. The subject 92 // each containing a single, PEM-encoded X.509 certificates. The subject
93 // from each certificate will be added to the certificate_authorities 93 // from each certificate will be added to the certificate_authorities
94 // field of the CertificateRequest. 94 // field of the CertificateRequest.
95 std::vector<FilePath> client_authorities; 95 std::vector<FilePath> client_authorities;
96 96
97 // A bitwise-OR of BulkCipher that should be used by the 97 // A bitwise-OR of BulkCipher that should be used by the
98 // HTTPS server, or BULK_CIPHER_ANY to indicate that all implemented 98 // HTTPS server, or BULK_CIPHER_ANY to indicate that all implemented
99 // ciphers are acceptable. 99 // ciphers are acceptable.
100 int bulk_ciphers; 100 int bulk_ciphers;
101
102 // True if TLS-SRP should be enabled.
103 bool use_tls_srp;
104
105 // True if only connections authenticated with TLS-SRP should be allowed.
106 bool only_tls_srp;
101 }; 107 };
102 108
103 TestServer(Type type, const FilePath& document_root); 109 TestServer(Type type, const FilePath& document_root);
104 110
105 // Initialize a HTTPS TestServer with a specific set of HTTPSOptions. 111 // Initialize a HTTPS TestServer with a specific set of HTTPSOptions.
106 TestServer(const HTTPSOptions& https_options, 112 TestServer(const HTTPSOptions& https_options,
107 const FilePath& document_root); 113 const FilePath& document_root);
108 114
109 ~TestServer(); 115 ~TestServer();
110 116
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 206
201 // Has the server been started? 207 // Has the server been started?
202 bool started_; 208 bool started_;
203 209
204 DISALLOW_COPY_AND_ASSIGN(TestServer); 210 DISALLOW_COPY_AND_ASSIGN(TestServer);
205 }; 211 };
206 212
207 } // namespace net 213 } // namespace net
208 214
209 #endif // NET_TEST_TEST_SERVER_H_ 215 #endif // NET_TEST_TEST_SERVER_H_
OLDNEW
« no previous file with comments | « net/test/openssl_helper.cc ('k') | net/test/test_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698