| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 // | 105 // |
| 106 // For certificates issued after 1 July 2012: 60 months. | 106 // For certificates issued after 1 July 2012: 60 months. |
| 107 // For certificates issued after 1 April 2015: 39 months. | 107 // For certificates issued after 1 April 2015: 39 months. |
| 108 // | 108 // |
| 109 // For certificates issued before the BRs took effect, there were no | 109 // For certificates issued before the BRs took effect, there were no |
| 110 // guidelines, but clamp them at a maximum of 10 year validity, with the | 110 // guidelines, but clamp them at a maximum of 10 year validity, with the |
| 111 // requirement they expire within 7 years after the effective date of the BRs | 111 // requirement they expire within 7 years after the effective date of the BRs |
| 112 // (i.e. by 1 July 2019). | 112 // (i.e. by 1 July 2019). |
| 113 static bool HasTooLongValidity(const X509Certificate& cert); | 113 static bool HasTooLongValidity(const X509Certificate& cert); |
| 114 | 114 |
| 115 // IsNonWhitelistedCert returns true iff the issuer of |cert| (as contained |
| 116 // in |hashes|) has been constrained to a whitelist of subject certificates, |
| 117 // and |cert| is not in that whitelist. |
| 118 static bool IsNonWhitelistedCert(const X509Certificate& cert, |
| 119 const HashValueVector& hashes); |
| 120 |
| 115 DISALLOW_COPY_AND_ASSIGN(CertVerifyProc); | 121 DISALLOW_COPY_AND_ASSIGN(CertVerifyProc); |
| 116 }; | 122 }; |
| 117 | 123 |
| 118 } // namespace net | 124 } // namespace net |
| 119 | 125 |
| 120 #endif // NET_CERT_CERT_VERIFY_PROC_H_ | 126 #endif // NET_CERT_CERT_VERIFY_PROC_H_ |
| OLD | NEW |