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

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

Issue 2854263004: Add tests for PathBuilder when certificates are distrusted. (Closed)
Patch Set: address mattm's feedback Created 3 years, 7 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 NET_EXPORT void VerifyCertificateChain(const ParsedCertificateList& certs, 112 NET_EXPORT void VerifyCertificateChain(const ParsedCertificateList& certs,
113 const CertificateTrust& last_cert_trust, 113 const CertificateTrust& last_cert_trust,
114 const SignaturePolicy* signature_policy, 114 const SignaturePolicy* signature_policy,
115 const der::GeneralizedTime& time, 115 const der::GeneralizedTime& time,
116 KeyPurpose required_key_purpose, 116 KeyPurpose required_key_purpose,
117 CertPathErrors* errors); 117 CertPathErrors* errors);
118 118
119 // TODO(crbug.com/634443): Move exported errors to a central location? 119 // TODO(crbug.com/634443): Move exported errors to a central location?
120 extern CertErrorId kValidityFailedNotAfter; 120 extern CertErrorId kValidityFailedNotAfter;
121 extern CertErrorId kValidityFailedNotBefore; 121 extern CertErrorId kValidityFailedNotBefore;
122 NET_EXPORT extern CertErrorId kCertIsDistrusted;
122 123
123 } // namespace net 124 } // namespace net
124 125
125 #endif // NET_CERT_INTERNAL_VERIFY_CERTIFICATE_CHAIN_H_ 126 #endif // NET_CERT_INTERNAL_VERIFY_CERTIFICATE_CHAIN_H_
OLDNEW
« no previous file with comments | « net/cert/internal/path_builder_unittest.cc ('k') | net/cert/internal/verify_certificate_chain.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698