| 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 #ifndef NET_CERT_CERT_VERIFY_PROC_H_ | 5 #ifndef NET_CERT_CERT_VERIFY_PROC_H_ |
| 6 #define NET_CERT_CERT_VERIFY_PROC_H_ | 6 #define NET_CERT_CERT_VERIFY_PROC_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 // For certificates issued after 1 April 2015: 39 months. | 122 // For certificates issued after 1 April 2015: 39 months. |
| 123 // | 123 // |
| 124 // For certificates issued before the BRs took effect, there were no | 124 // For certificates issued before the BRs took effect, there were no |
| 125 // guidelines, but clamp them at a maximum of 10 year validity, with the | 125 // guidelines, but clamp them at a maximum of 10 year validity, with the |
| 126 // requirement they expire within 7 years after the effective date of the BRs | 126 // requirement they expire within 7 years after the effective date of the BRs |
| 127 // (i.e. by 1 July 2019). | 127 // (i.e. by 1 July 2019). |
| 128 static bool HasTooLongValidity(const X509Certificate& cert); | 128 static bool HasTooLongValidity(const X509Certificate& cert); |
| 129 | 129 |
| 130 // Emergency kill-switch for SHA-1 deprecation. Disabled by default. | 130 // Emergency kill-switch for SHA-1 deprecation. Disabled by default. |
| 131 static const base::Feature kSHA1LegacyMode; | 131 static const base::Feature kSHA1LegacyMode; |
| 132 const bool sha1_legacy_mode_enabled; |
| 132 | 133 |
| 133 DISALLOW_COPY_AND_ASSIGN(CertVerifyProc); | 134 DISALLOW_COPY_AND_ASSIGN(CertVerifyProc); |
| 134 }; | 135 }; |
| 135 | 136 |
| 136 } // namespace net | 137 } // namespace net |
| 137 | 138 |
| 138 #endif // NET_CERT_CERT_VERIFY_PROC_H_ | 139 #endif // NET_CERT_CERT_VERIFY_PROC_H_ |
| OLD | NEW |