Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(939)

Side by Side Diff: net/cert/internal/verify_certificate_chain.h

Issue 2755483008: Add initial CertVerifyProcBuiltin. (Closed)
Patch Set: type notimplemented properly Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « net/cert/internal/trust_store_in_memory.cc ('k') | net/cert/internal/verify_certificate_chain.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698