| 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_android.h" | 5 #include "net/cert/cert_verify_proc_android.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/metrics/histogram_macros.h" | 12 #include "base/metrics/histogram_macros.h" |
| 13 #include "base/sha1.h" | 13 #include "base/sha1.h" |
| 14 #include "base/strings/string_piece.h" | 14 #include "base/strings/string_piece.h" |
| 15 #include "crypto/sha2.h" | 15 #include "crypto/sha2.h" |
| 16 #include "net/android/cert_verify_result_android.h" | 16 #include "net/android/cert_verify_result_android.h" |
| 17 #include "net/android/network_library.h" | 17 #include "net/android/network_library.h" |
| 18 #include "net/base/net_errors.h" | 18 #include "net/base/net_errors.h" |
| 19 #include "net/cert/asn1_util.h" | 19 #include "net/cert/asn1_util.h" |
| 20 #include "net/cert/cert_net_fetcher.h" | 20 #include "net/cert/cert_net_fetcher.h" |
| 21 #include "net/cert/cert_status_flags.h" | 21 #include "net/cert/cert_status_flags.h" |
| 22 #include "net/cert/cert_verify_result.h" | 22 #include "net/cert/cert_verify_result.h" |
| 23 #include "net/cert/internal/cert_errors.h" | 23 #include "net/cert/internal/cert_errors.h" |
| 24 #include "net/cert/internal/parsed_certificate.h" | 24 #include "net/cert/internal/parsed_certificate.h" |
| 25 #include "net/cert/x509_certificate.h" | 25 #include "net/cert/x509_certificate.h" |
| 26 #include "net/cert/x509_util.h" | 26 #include "net/cert/x509_util.h" |
| 27 #include "third_party/boringssl/src/include/openssl/x509v3.h" | |
| 28 #include "url/gurl.h" | 27 #include "url/gurl.h" |
| 29 | 28 |
| 30 namespace net { | 29 namespace net { |
| 31 | 30 |
| 32 namespace { | 31 namespace { |
| 33 | 32 |
| 34 // Used to fetch intermediates via AIA if necessary. | 33 // Used to fetch intermediates via AIA if necessary. |
| 35 base::LazyInstance<scoped_refptr<CertNetFetcher>>::Leaky g_cert_net_fetcher = | 34 base::LazyInstance<scoped_refptr<CertNetFetcher>>::Leaky g_cert_net_fetcher = |
| 36 LAZY_INSTANCE_INITIALIZER; | 35 LAZY_INSTANCE_INITIALIZER; |
| 37 | 36 |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 return ERR_FAILED; | 402 return ERR_FAILED; |
| 404 } | 403 } |
| 405 | 404 |
| 406 if (IsCertStatusError(verify_result->cert_status)) | 405 if (IsCertStatusError(verify_result->cert_status)) |
| 407 return MapCertStatusToNetError(verify_result->cert_status); | 406 return MapCertStatusToNetError(verify_result->cert_status); |
| 408 | 407 |
| 409 return OK; | 408 return OK; |
| 410 } | 409 } |
| 411 | 410 |
| 412 } // namespace net | 411 } // namespace net |
| OLD | NEW |