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

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

Issue 45373002: net: add pinning for liberty.lavabit.com. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reupload due to 500 error. Created 7 years, 1 month 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 | net/http/transport_security_state_static.h » ('j') | 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) 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 #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 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 DOMAIN_GOOGLE_TT, 515 DOMAIN_GOOGLE_TT,
516 DOMAIN_GOOGLE_US, 516 DOMAIN_GOOGLE_US,
517 DOMAIN_GOOGLE_UZ, 517 DOMAIN_GOOGLE_UZ,
518 DOMAIN_GOOGLE_VG, 518 DOMAIN_GOOGLE_VG,
519 DOMAIN_GOOGLE_VU, 519 DOMAIN_GOOGLE_VU,
520 DOMAIN_GOOGLE_WS, 520 DOMAIN_GOOGLE_WS,
521 521
522 DOMAIN_CHROMIUM_ORG, 522 DOMAIN_CHROMIUM_ORG,
523 523
524 DOMAIN_CRYPTO_CAT, 524 DOMAIN_CRYPTO_CAT,
525 DOMAIN_LAVABIT_COM,
525 526
526 // Boundary value for UMA_HISTOGRAM_ENUMERATION: 527 // Boundary value for UMA_HISTOGRAM_ENUMERATION:
527 DOMAIN_NUM_EVENTS 528 DOMAIN_NUM_EVENTS
528 }; 529 };
529 530
530 // PublicKeyPins contains a number of SubjectPublicKeyInfo hashes for a site. 531 // PublicKeyPins contains a number of SubjectPublicKeyInfo hashes for a site.
531 // The validated certificate chain for the site must not include any of 532 // The validated certificate chain for the site must not include any of
532 // |excluded_hashes| and must include one or more of |required_hashes|. 533 // |excluded_hashes| and must include one or more of |required_hashes|.
533 struct PublicKeyPins { 534 struct PublicKeyPins {
534 const char* const* required_hashes; 535 const char* const* required_hashes;
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
885 return true; 886 return true;
886 } 887 }
887 888
888 bool TransportSecurityState::DomainState::HasPublicKeyPins() const { 889 bool TransportSecurityState::DomainState::HasPublicKeyPins() const {
889 return static_spki_hashes.size() > 0 || 890 return static_spki_hashes.size() > 0 ||
890 bad_static_spki_hashes.size() > 0 || 891 bad_static_spki_hashes.size() > 0 ||
891 dynamic_spki_hashes.size() > 0; 892 dynamic_spki_hashes.size() > 0;
892 } 893 }
893 894
894 } // namespace 895 } // namespace
OLDNEW
« no previous file with comments | « no previous file | net/http/transport_security_state_static.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698