| 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 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 {22, false, "\011appengine\006google\003com"}, | 518 {22, false, "\011appengine\006google\003com"}, |
| 519 {25, false, "\003www\017paycheckrecords\003com"}, | 519 {25, false, "\003www\017paycheckrecords\003com"}, |
| 520 {20, true, "\006market\007android\003com"}, | 520 {20, true, "\006market\007android\003com"}, |
| 521 {14, false, "\010lastpass\003com"}, | 521 {14, false, "\010lastpass\003com"}, |
| 522 {18, false, "\003www\010lastpass\003com"}, | 522 {18, false, "\003www\010lastpass\003com"}, |
| 523 {14, true, "\010keyerror\003com"}, | 523 {14, true, "\010keyerror\003com"}, |
| 524 {22, true, "\011encrypted\006google\003com"}, | 524 {22, true, "\011encrypted\006google\003com"}, |
| 525 {13, false, "\010entropia\002de"}, | 525 {13, false, "\010entropia\002de"}, |
| 526 {17, false, "\003www\010entropia\002de"}, | 526 {17, false, "\003www\010entropia\002de"}, |
| 527 {21, true, "\010accounts\006google\003com"}, | 527 {21, true, "\010accounts\006google\003com"}, |
| 528 #if defined(OS_CHROMEOS) |
| 529 {17, true, "\004mail\006google\003com"}, |
| 530 {13, false, "\007twitter\003com"}, |
| 531 {17, false, "\003www\007twitter\003com"}, |
| 532 {17, false, "\003api\007twitter\003com"}, |
| 533 {17, false, "\003dev\007twitter\003com"}, |
| 534 {22, false, "\010business\007twitter\003com"}, |
| 535 #endif |
| 528 }; | 536 }; |
| 529 static const size_t kNumPreloadedSTS = ARRAYSIZE_UNSAFE(kPreloadedSTS); | 537 static const size_t kNumPreloadedSTS = ARRAYSIZE_UNSAFE(kPreloadedSTS); |
| 530 | 538 |
| 531 static const struct { | 539 static const struct { |
| 532 uint8 length; | 540 uint8 length; |
| 533 bool include_subdomains; | 541 bool include_subdomains; |
| 534 char dns_name[30]; | 542 char dns_name[30]; |
| 535 } kPreloadedSNISTS[] = { | 543 } kPreloadedSNISTS[] = { |
| 536 {11, true, "\005gmail\003com"}, | 544 {11, true, "\005gmail\003com"}, |
| 537 {16, true, "\012googlemail\003com"}, | 545 {16, true, "\012googlemail\003com"}, |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 607 | 615 |
| 608 | 616 |
| 609 LOG(ERROR) << "Rejecting public key chain for domain " << domain | 617 LOG(ERROR) << "Rejecting public key chain for domain " << domain |
| 610 << ". Validated chain: " << HashesToBase64String(hashes) | 618 << ". Validated chain: " << HashesToBase64String(hashes) |
| 611 << ", expected: " << HashesToBase64String(public_key_hashes); | 619 << ", expected: " << HashesToBase64String(public_key_hashes); |
| 612 | 620 |
| 613 return false; | 621 return false; |
| 614 } | 622 } |
| 615 | 623 |
| 616 } // namespace | 624 } // namespace |
| OLD | NEW |