| OLD | NEW |
| 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 #include "net/base/transport_security_state.h" | 5 #include "net/base/transport_security_state.h" |
| 6 | 6 |
| 7 #include "base/base64.h" | 7 #include "base/base64.h" |
| 8 #include "base/json/json_reader.h" | 8 #include "base/json/json_reader.h" |
| 9 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 599 {23, true, "\012talkgadget\006google\003com", true, | 599 {23, true, "\012talkgadget\006google\003com", true, |
| 600 kGoogleAcceptableCerts }, | 600 kGoogleAcceptableCerts }, |
| 601 {17, true, "\004talk\006google\003com", true, kGoogleAcceptableCerts }, | 601 {17, true, "\004talk\006google\003com", true, kGoogleAcceptableCerts }, |
| 602 {29, true, "\020hostedtalkgadget\006google\003com", true, | 602 {29, true, "\020hostedtalkgadget\006google\003com", true, |
| 603 kGoogleAcceptableCerts }, | 603 kGoogleAcceptableCerts }, |
| 604 {17, true, "\004plus\006google\003com", true, kGoogleAcceptableCerts }, | 604 {17, true, "\004plus\006google\003com", true, kGoogleAcceptableCerts }, |
| 605 // Other Google-related domains that must use HTTPS. | 605 // Other Google-related domains that must use HTTPS. |
| 606 {20, true, "\006market\007android\003com", true, kGoogleAcceptableCerts }, | 606 {20, true, "\006market\007android\003com", true, kGoogleAcceptableCerts }, |
| 607 {26, true, "\003ssl\020google-analytics\003com", true, | 607 {26, true, "\003ssl\020google-analytics\003com", true, |
| 608 kGoogleAcceptableCerts }, | 608 kGoogleAcceptableCerts }, |
| 609 {18, true, "\005drive\006google\003com", true, kGoogleAcceptableCerts }, |
| 609 // Other Google-related domains that must use an acceptable certificate | 610 // Other Google-related domains that must use an acceptable certificate |
| 610 // iff using SSL. | 611 // iff using SSL. |
| 611 {11, true, "\005ytimg\003com", false, kGoogleAcceptableCerts }, | 612 {11, true, "\005ytimg\003com", false, kGoogleAcceptableCerts }, |
| 612 {23, true, "\021googleusercontent\003com", false, kGoogleAcceptableCerts }, | 613 {23, true, "\021googleusercontent\003com", false, kGoogleAcceptableCerts }, |
| 613 {13, true, "\007youtube\003com", false, kGoogleAcceptableCerts }, | 614 {13, true, "\007youtube\003com", false, kGoogleAcceptableCerts }, |
| 614 {16, true, "\012googleapis\003com", false, kGoogleAcceptableCerts }, | 615 {16, true, "\012googleapis\003com", false, kGoogleAcceptableCerts }, |
| 615 {22, true, "\020googleadservices\003com", false, kGoogleAcceptableCerts }, | 616 {22, true, "\020googleadservices\003com", false, kGoogleAcceptableCerts }, |
| 616 {16, true, "\012googlecode\003com", false, kGoogleAcceptableCerts }, | 617 {16, true, "\012googlecode\003com", false, kGoogleAcceptableCerts }, |
| 617 {13, true, "\007appspot\003com", false, kGoogleAcceptableCerts }, | 618 {13, true, "\007appspot\003com", false, kGoogleAcceptableCerts }, |
| 618 {23, true, "\021googlesyndication\003com", false, kGoogleAcceptableCerts }, | 619 {23, true, "\021googlesyndication\003com", false, kGoogleAcceptableCerts }, |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 748 } | 749 } |
| 749 | 750 |
| 750 LOG(ERROR) << "Rejecting public key chain for domain " << domain | 751 LOG(ERROR) << "Rejecting public key chain for domain " << domain |
| 751 << ". Validated chain: " << HashesToBase64String(hashes) | 752 << ". Validated chain: " << HashesToBase64String(hashes) |
| 752 << ", expected: " << HashesToBase64String(public_key_hashes); | 753 << ", expected: " << HashesToBase64String(public_key_hashes); |
| 753 | 754 |
| 754 return false; | 755 return false; |
| 755 } | 756 } |
| 756 | 757 |
| 757 } // namespace | 758 } // namespace |
| OLD | NEW |