| 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/cert/cert_verify_proc.h" | 5 #include "net/cert/cert_verify_proc.h" |
| 6 | 6 |
| 7 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram.h" |
| 8 #include "base/sha1.h" | 8 #include "base/sha1.h" |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 #include "googleurl/src/url_canon.h" | |
| 11 #include "net/base/net_errors.h" | 10 #include "net/base/net_errors.h" |
| 12 #include "net/base/net_util.h" | 11 #include "net/base/net_util.h" |
| 13 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" | 12 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
| 14 #include "net/cert/cert_status_flags.h" | 13 #include "net/cert/cert_status_flags.h" |
| 15 #include "net/cert/cert_verifier.h" | 14 #include "net/cert/cert_verifier.h" |
| 16 #include "net/cert/cert_verify_result.h" | 15 #include "net/cert/cert_verify_result.h" |
| 17 #include "net/cert/crl_set.h" | 16 #include "net/cert/crl_set.h" |
| 18 #include "net/cert/x509_certificate.h" | 17 #include "net/cert/x509_certificate.h" |
| 18 #include "url/url_canon.h" |
| 19 | 19 |
| 20 #if defined(USE_NSS) || defined(OS_IOS) | 20 #if defined(USE_NSS) || defined(OS_IOS) |
| 21 #include "net/cert/cert_verify_proc_nss.h" | 21 #include "net/cert/cert_verify_proc_nss.h" |
| 22 #elif defined(USE_OPENSSL) && !defined(OS_ANDROID) | 22 #elif defined(USE_OPENSSL) && !defined(OS_ANDROID) |
| 23 #include "net/cert/cert_verify_proc_openssl.h" | 23 #include "net/cert/cert_verify_proc_openssl.h" |
| 24 #elif defined(OS_ANDROID) | 24 #elif defined(OS_ANDROID) |
| 25 #include "net/cert/cert_verify_proc_android.h" | 25 #include "net/cert/cert_verify_proc_android.h" |
| 26 #elif defined(OS_MACOSX) | 26 #elif defined(OS_MACOSX) |
| 27 #include "net/cert/cert_verify_proc_mac.h" | 27 #include "net/cert/cert_verify_proc_mac.h" |
| 28 #elif defined(OS_WIN) | 28 #elif defined(OS_WIN) |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 // is updated. However, because gTLDs are expected to provide significant | 326 // is updated. However, because gTLDs are expected to provide significant |
| 327 // advance notice to deprecate older versions of this code, this an | 327 // advance notice to deprecate older versions of this code, this an |
| 328 // acceptable tradeoff. | 328 // acceptable tradeoff. |
| 329 return 0 == registry_controlled_domains::GetRegistryLength( | 329 return 0 == registry_controlled_domains::GetRegistryLength( |
| 330 canonical_name, | 330 canonical_name, |
| 331 registry_controlled_domains::EXCLUDE_UNKNOWN_REGISTRIES, | 331 registry_controlled_domains::EXCLUDE_UNKNOWN_REGISTRIES, |
| 332 registry_controlled_domains::EXCLUDE_PRIVATE_REGISTRIES); | 332 registry_controlled_domains::EXCLUDE_PRIVATE_REGISTRIES); |
| 333 } | 333 } |
| 334 | 334 |
| 335 } // namespace net | 335 } // namespace net |
| OLD | NEW |