| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "net/http/transport_security_state.h" | 5 #include "net/http/transport_security_state.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 namespace net { | 41 namespace net { |
| 42 | 42 |
| 43 namespace { | 43 namespace { |
| 44 | 44 |
| 45 const char kHost[] = "example.test"; | 45 const char kHost[] = "example.test"; |
| 46 const char kSubdomain[] = "foo.example.test"; | 46 const char kSubdomain[] = "foo.example.test"; |
| 47 const uint16_t kPort = 443; | 47 const uint16_t kPort = 443; |
| 48 const char kReportUri[] = "http://report-example.test/test"; | 48 const char kReportUri[] = "http://report-example.test/test"; |
| 49 const char kExpectCTStaticHostname[] = "preloaded-expect-ct.badssl.com"; | 49 const char kExpectCTStaticHostname[] = "preloaded-expect-ct.badssl.com"; |
| 50 const char kExpectCTStaticReportURI[] = "https://report.badssl.com/expect-ct"; | 50 const char kExpectCTStaticReportURI[] = "https://clients3.google.com/ct_upload"; |
| 51 const char kExpectStapleStaticHostname[] = "preloaded-expect-staple.badssl.com"; | 51 const char kExpectStapleStaticHostname[] = "preloaded-expect-staple.badssl.com"; |
| 52 const char kExpectStapleStaticReportURI[] = | 52 const char kExpectStapleStaticReportURI[] = |
| 53 "https://report.badssl.com/expect-staple"; | 53 "https://report.badssl.com/expect-staple"; |
| 54 const char kExpectStapleStaticIncludeSubdomainsHostname[] = | 54 const char kExpectStapleStaticIncludeSubdomainsHostname[] = |
| 55 "preloaded-expect-staple-include-subdomains.badssl.com"; | 55 "preloaded-expect-staple-include-subdomains.badssl.com"; |
| 56 | 56 |
| 57 // kGoodPath is blog.torproject.org. | 57 // kGoodPath is blog.torproject.org. |
| 58 const char* const kGoodPath[] = { | 58 const char* const kGoodPath[] = { |
| 59 "sha1/Yz4vayd/83rQfDXkDPn2yhzIScw=", | 59 "sha1/Yz4vayd/83rQfDXkDPn2yhzIScw=", |
| 60 "sha1/3lKvjNsfmrn+WmfDhvr2iVh/yRs=", | 60 "sha1/3lKvjNsfmrn+WmfDhvr2iVh/yRs=", |
| (...skipping 2275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2336 base::FieldTrialList::CreateFieldTrial("EnforceCTForProblematicRoots", | 2336 base::FieldTrialList::CreateFieldTrial("EnforceCTForProblematicRoots", |
| 2337 "disabled"); | 2337 "disabled"); |
| 2338 | 2338 |
| 2339 EXPECT_FALSE( | 2339 EXPECT_FALSE( |
| 2340 state.ShouldRequireCT("www.example.com", before_cert.get(), hashes)); | 2340 state.ShouldRequireCT("www.example.com", before_cert.get(), hashes)); |
| 2341 EXPECT_FALSE( | 2341 EXPECT_FALSE( |
| 2342 state.ShouldRequireCT("www.example.com", after_cert.get(), hashes)); | 2342 state.ShouldRequireCT("www.example.com", after_cert.get(), hashes)); |
| 2343 } | 2343 } |
| 2344 | 2344 |
| 2345 } // namespace net | 2345 } // namespace net |
| OLD | NEW |