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

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

Issue 1059303002: Don't process HSTS/HPKP headers when host is an IP address (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ugly workaround for mac 10.6 getaddrinfo bug Created 5 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
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // by "Testing CA" (see net/data/ssl/certificates/ocsp-test-root.pem). 54 // by "Testing CA" (see net/data/ssl/certificates/ocsp-test-root.pem).
55 CERT_AUTO, 55 CERT_AUTO,
56 56
57 CERT_MISMATCHED_NAME, 57 CERT_MISMATCHED_NAME,
58 CERT_EXPIRED, 58 CERT_EXPIRED,
59 // Cross-signed certificate to test PKIX path building. Contains an 59 // Cross-signed certificate to test PKIX path building. Contains an
60 // intermediate cross-signed by an unknown root, while the client (via 60 // intermediate cross-signed by an unknown root, while the client (via
61 // TestRootStore) is expected to have a self-signed version of the 61 // TestRootStore) is expected to have a self-signed version of the
62 // intermediate. 62 // intermediate.
63 CERT_CHAIN_WRONG_ROOT, 63 CERT_CHAIN_WRONG_ROOT,
64
65 // Causes the testserver to use a hostname that is a domain
66 // instead of an IP.
67 CERT_COMMON_NAME_IS_DOMAIN,
64 }; 68 };
65 69
66 // OCSPStatus enumerates the types of OCSP response that the testserver 70 // OCSPStatus enumerates the types of OCSP response that the testserver
67 // can produce. 71 // can produce.
68 enum OCSPStatus { 72 enum OCSPStatus {
69 OCSP_OK, 73 OCSP_OK,
70 OCSP_REVOKED, 74 OCSP_REVOKED,
71 OCSP_INVALID, 75 OCSP_INVALID,
72 OCSP_UNAUTHORIZED, 76 OCSP_UNAUTHORIZED,
73 OCSP_UNKNOWN, 77 OCSP_UNKNOWN,
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 bool ws_basic_auth_; 332 bool ws_basic_auth_;
329 333
330 scoped_ptr<ScopedPortException> allowed_port_; 334 scoped_ptr<ScopedPortException> allowed_port_;
331 335
332 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); 336 DISALLOW_COPY_AND_ASSIGN(BaseTestServer);
333 }; 337 };
334 338
335 } // namespace net 339 } // namespace net
336 340
337 #endif // NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_ 341 #endif // NET_TEST_SPAWNED_TEST_SERVER_BASE_TEST_SERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698