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

Side by Side Diff: net/base/transport_security_state.cc

Issue 6862004: ChromeOS specific HSTS section (with permission from Sumit, Will, more). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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 | « no previous file | no next file » | 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 #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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698