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 <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
10 #include "base/metrics/histogram_macros.h" | 10 #include "base/metrics/histogram_macros.h" |
11 #include "base/sha1.h" | 11 #include "base/sha1.h" |
12 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
13 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
15 #include "build/build_config.h" | 15 #include "build/build_config.h" |
16 #include "net/base/net_errors.h" | 16 #include "net/base/net_errors.h" |
17 #include "net/base/net_util.h" | |
18 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" | 17 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
19 #include "net/base/url_util.h" | 18 #include "net/base/url_util.h" |
20 #include "net/cert/cert_status_flags.h" | 19 #include "net/cert/cert_status_flags.h" |
21 #include "net/cert/cert_verifier.h" | 20 #include "net/cert/cert_verifier.h" |
22 #include "net/cert/cert_verify_proc_whitelist.h" | 21 #include "net/cert/cert_verify_proc_whitelist.h" |
23 #include "net/cert/cert_verify_result.h" | 22 #include "net/cert/cert_verify_result.h" |
24 #include "net/cert/crl_set.h" | 23 #include "net/cert/crl_set.h" |
25 #include "net/cert/x509_certificate.h" | 24 #include "net/cert/x509_certificate.h" |
26 #include "url/url_canon.h" | 25 #include "url/url_canon.h" |
27 | 26 |
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
722 return true; | 721 return true; |
723 | 722 |
724 // For certificates issued after 1 April 2015: 39 months. | 723 // For certificates issued after 1 April 2015: 39 months. |
725 if (start >= time_2015_04_01 && month_diff > 39) | 724 if (start >= time_2015_04_01 && month_diff > 39) |
726 return true; | 725 return true; |
727 | 726 |
728 return false; | 727 return false; |
729 } | 728 } |
730 | 729 |
731 } // namespace net | 730 } // namespace net |
OLD | NEW |