| OLD | NEW |
| 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 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 DOMAIN_GOOGLE_UZ, | 514 DOMAIN_GOOGLE_UZ, |
| 515 DOMAIN_GOOGLE_VG, | 515 DOMAIN_GOOGLE_VG, |
| 516 DOMAIN_GOOGLE_VU, | 516 DOMAIN_GOOGLE_VU, |
| 517 DOMAIN_GOOGLE_WS, | 517 DOMAIN_GOOGLE_WS, |
| 518 | 518 |
| 519 DOMAIN_CHROMIUM_ORG, | 519 DOMAIN_CHROMIUM_ORG, |
| 520 | 520 |
| 521 DOMAIN_CRYPTO_CAT, | 521 DOMAIN_CRYPTO_CAT, |
| 522 DOMAIN_LAVABIT_COM, | 522 DOMAIN_LAVABIT_COM, |
| 523 | 523 |
| 524 DOMAIN_GOOGLETAGMANAGER_COM, |
| 525 |
| 524 // Boundary value for UMA_HISTOGRAM_ENUMERATION: | 526 // Boundary value for UMA_HISTOGRAM_ENUMERATION: |
| 525 DOMAIN_NUM_EVENTS | 527 DOMAIN_NUM_EVENTS |
| 526 }; | 528 }; |
| 527 | 529 |
| 528 // PublicKeyPins contains a number of SubjectPublicKeyInfo hashes for a site. | 530 // PublicKeyPins contains a number of SubjectPublicKeyInfo hashes for a site. |
| 529 // The validated certificate chain for the site must not include any of | 531 // The validated certificate chain for the site must not include any of |
| 530 // |excluded_hashes| and must include one or more of |required_hashes|. | 532 // |excluded_hashes| and must include one or more of |required_hashes|. |
| 531 struct PublicKeyPins { | 533 struct PublicKeyPins { |
| 532 const char* const* required_hashes; | 534 const char* const* required_hashes; |
| 533 const char* const* excluded_hashes; | 535 const char* const* excluded_hashes; |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 885 return true; | 887 return true; |
| 886 } | 888 } |
| 887 | 889 |
| 888 bool TransportSecurityState::DomainState::HasPublicKeyPins() const { | 890 bool TransportSecurityState::DomainState::HasPublicKeyPins() const { |
| 889 return static_spki_hashes.size() > 0 || | 891 return static_spki_hashes.size() > 0 || |
| 890 bad_static_spki_hashes.size() > 0 || | 892 bad_static_spki_hashes.size() > 0 || |
| 891 dynamic_spki_hashes.size() > 0; | 893 dynamic_spki_hashes.size() > 0; |
| 892 } | 894 } |
| 893 | 895 |
| 894 } // namespace | 896 } // namespace |
| OLD | NEW |