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

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

Issue 2329593002: Add optional context for certificate errors. (Closed)
Patch Set: Address Matt's comments Created 4 years, 3 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
« no previous file with comments | « net/cert/internal/signature_policy.cc ('k') | net/cert/internal/verify_certificate_chain.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 const der::GeneralizedTime& time, 75 const der::GeneralizedTime& time,
76 CertErrors* errors) WARN_UNUSED_RESULT; 76 CertErrors* errors) WARN_UNUSED_RESULT;
77 77
78 // ----------------------------------------------- 78 // -----------------------------------------------
79 // Errors/Warnings set by VerifyCertificateChain 79 // Errors/Warnings set by VerifyCertificateChain
80 // ----------------------------------------------- 80 // -----------------------------------------------
81 81
82 namespace verify_certificate_chain_errors { 82 namespace verify_certificate_chain_errors {
83 83
84 // TODO(eroman): Document each of these and their parameters. 84 // TODO(eroman): Document each of these and their parameters.
85 extern CertErrorType kSignatureAlgorithmMismatch; 85 extern CertErrorId kSignatureAlgorithmMismatch;
86 extern CertErrorType kInvalidOrUnsupportedAlgorithm; 86 extern CertErrorId kInvalidOrUnsupportedSignatureAlgorithm;
87 extern CertErrorType kChainIsEmpty; 87 extern CertErrorId kChainIsEmpty;
88 extern CertErrorType kUnconsumedCriticalExtension; 88 extern CertErrorId kUnconsumedCriticalExtension;
89 extern CertErrorType kTargetCertInconsistentCaBits; 89 extern CertErrorId kTargetCertInconsistentCaBits;
90 extern CertErrorType kKeyCertSignBitNotSet; 90 extern CertErrorId kKeyCertSignBitNotSet;
91 extern CertErrorType kMaxPathLengthViolated; 91 extern CertErrorId kMaxPathLengthViolated;
92 extern CertErrorType kBasicConstraintsIndicatesNotCa; 92 extern CertErrorId kBasicConstraintsIndicatesNotCa;
93 extern CertErrorType kMissingBasicConstraints; 93 extern CertErrorId kMissingBasicConstraints;
94 extern CertErrorType kNotPermittedByNameConstraints; 94 extern CertErrorId kNotPermittedByNameConstraints;
95 extern CertErrorType kSubjectDoesNotMatchIssuer; 95 extern CertErrorId kSubjectDoesNotMatchIssuer;
96 extern CertErrorType kVerifySignedDataFailed; 96 extern CertErrorId kVerifySignedDataFailed;
97 extern CertErrorType kValidityFailedNotAfter; 97 extern CertErrorId kValidityFailedNotAfter;
98 extern CertErrorType kValidityFailedNotBefore; 98 extern CertErrorId kValidityFailedNotBefore;
99 extern CertErrorType kSignatureAlgorithmsDifferentEncoding; 99 extern CertErrorId kSignatureAlgorithmsDifferentEncoding;
100 100
101 } // namespace verify_certificate_chain_errors 101 } // namespace verify_certificate_chain_errors
102 102
103 } // namespace net 103 } // namespace net
104 104
105 #endif // NET_CERT_INTERNAL_VERIFY_CERTIFICATE_CHAIN_H_ 105 #endif // NET_CERT_INTERNAL_VERIFY_CERTIFICATE_CHAIN_H_
OLDNEW
« no previous file with comments | « net/cert/internal/signature_policy.cc ('k') | net/cert/internal/verify_certificate_chain.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698