| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_INTERNAL_VERIFY_CERTIFICATE_CHAIN_H_ | 5 #ifndef NET_CERT_INTERNAL_VERIFY_CERTIFICATE_CHAIN_H_ |
| 6 #define NET_CERT_INTERNAL_VERIFY_CERTIFICATE_CHAIN_H_ | 6 #define NET_CERT_INTERNAL_VERIFY_CERTIFICATE_CHAIN_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // validating the path are appended to this structure. There is no | 67 // validating the path are appended to this structure. There is no |
| 68 // guarantee that on success |errors| is empty, or conversely that | 68 // guarantee that on success |errors| is empty, or conversely that |
| 69 // on failure |errors| is non-empty. Consumers must only use the | 69 // on failure |errors| is non-empty. Consumers must only use the |
| 70 // boolean return value to determine success/failure. | 70 // boolean return value to determine success/failure. |
| 71 NET_EXPORT bool VerifyCertificateChain(const ParsedCertificateList& certs, | 71 NET_EXPORT bool VerifyCertificateChain(const ParsedCertificateList& certs, |
| 72 const TrustAnchor* trust_anchor, | 72 const TrustAnchor* trust_anchor, |
| 73 const SignaturePolicy* signature_policy, | 73 const SignaturePolicy* signature_policy, |
| 74 const der::GeneralizedTime& time, | 74 const der::GeneralizedTime& time, |
| 75 CertErrors* errors) WARN_UNUSED_RESULT; | 75 CertErrors* errors) WARN_UNUSED_RESULT; |
| 76 | 76 |
| 77 // TODO(crbug.com/634443): Move exported errors to a central location? |
| 78 extern CertErrorId kValidityFailedNotAfter; |
| 79 extern CertErrorId kValidityFailedNotBefore; |
| 80 |
| 77 } // namespace net | 81 } // namespace net |
| 78 | 82 |
| 79 #endif // NET_CERT_INTERNAL_VERIFY_CERTIFICATE_CHAIN_H_ | 83 #endif // NET_CERT_INTERNAL_VERIFY_CERTIFICATE_CHAIN_H_ |
| OLD | NEW |