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

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

Issue 10451012: Revert 138795 - Revert "nss: revert encrypted and origin bound certificates support." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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
OLDNEW
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/base/transport_security_state.h" 5 #include "net/base/transport_security_state.h"
6 6
7 #if defined(USE_OPENSSL) 7 #if defined(USE_OPENSSL)
8 #include <openssl/ecdsa.h> 8 #include <openssl/ecdsa.h>
9 #include <openssl/ssl.h> 9 #include <openssl/ssl.h>
10 #else // !defined(USE_OPENSSL) 10 #else // !defined(USE_OPENSSL)
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 DOMAIN_GOOGLEMAIL_COM, 557 DOMAIN_GOOGLEMAIL_COM,
558 DOMAIN_GOOGLEGROUPS_COM, 558 DOMAIN_GOOGLEGROUPS_COM,
559 559
560 DOMAIN_TORPROJECT_ORG, 560 DOMAIN_TORPROJECT_ORG,
561 561
562 DOMAIN_TWITTER_COM, 562 DOMAIN_TWITTER_COM,
563 DOMAIN_TWIMG_COM, 563 DOMAIN_TWIMG_COM,
564 564
565 DOMAIN_AKAMAIHD_NET, 565 DOMAIN_AKAMAIHD_NET,
566 566
567 DOMAIN_TOR2WEB_ORG,
568
567 // Boundary value for UMA_HISTOGRAM_ENUMERATION: 569 // Boundary value for UMA_HISTOGRAM_ENUMERATION:
568 DOMAIN_NUM_EVENTS 570 DOMAIN_NUM_EVENTS
569 }; 571 };
570 572
571 // PublicKeyPins contains a number of SubjectPublicKeyInfo hashes for a site. 573 // PublicKeyPins contains a number of SubjectPublicKeyInfo hashes for a site.
572 // The validated certificate chain for the site must not include any of 574 // The validated certificate chain for the site must not include any of
573 // |excluded_hashes| and must include one or more of |required_hashes|. 575 // |excluded_hashes| and must include one or more of |required_hashes|.
574 struct PublicKeyPins { 576 struct PublicKeyPins {
575 const char* const* required_hashes; 577 const char* const* required_hashes;
576 const char* const* excluded_hashes; 578 const char* const* excluded_hashes;
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 return true; 796 return true;
795 } 797 }
796 798
797 bool TransportSecurityState::DomainState::HasPins() const { 799 bool TransportSecurityState::DomainState::HasPins() const {
798 return static_spki_hashes.size() > 0 || 800 return static_spki_hashes.size() > 0 ||
799 bad_static_spki_hashes.size() > 0 || 801 bad_static_spki_hashes.size() > 0 ||
800 dynamic_spki_hashes.size() > 0; 802 dynamic_spki_hashes.size() > 0;
801 } 803 }
802 804
803 } // namespace 805 } // namespace
OLDNEW
« no previous file with comments | « content/common/fileapi/webblobregistry_impl.cc ('k') | net/base/transport_security_state_static.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698