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

Side by Side Diff: net/cert/internal/path_builder.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
« no previous file with comments | « net/cert/internal/cert_errors.cc ('k') | net/cert/internal/signature_policy.h » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_PATH_BUILDER_H_ 5 #ifndef NET_CERT_INTERNAL_PATH_BUILDER_H_
6 #define NET_CERT_INTERNAL_PATH_BUILDER_H_ 6 #define NET_CERT_INTERNAL_PATH_BUILDER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 14 matching lines...) Expand all
25 class CertPathIter; 25 class CertPathIter;
26 class CertIssuerSource; 26 class CertIssuerSource;
27 class SignaturePolicy; 27 class SignaturePolicy;
28 28
29 // CertPath describes a chain of certificates in the "forward" direction. 29 // CertPath describes a chain of certificates in the "forward" direction.
30 // 30 //
31 // By convention: 31 // By convention:
32 // certs[0] is the target certificate 32 // certs[0] is the target certificate
33 // certs[i] was issued by certs[i+1] 33 // certs[i] was issued by certs[i+1]
34 // certs.back() was issued by trust_anchor 34 // certs.back() was issued by trust_anchor
35 //
36 // TODO(eroman): The current code doesn't allow for the target certificate to
37 // be the trust anchor. Should it?
35 struct NET_EXPORT CertPath { 38 struct NET_EXPORT CertPath {
36 CertPath(); 39 CertPath();
37 ~CertPath(); 40 ~CertPath();
38 41
39 scoped_refptr<TrustAnchor> trust_anchor; 42 scoped_refptr<TrustAnchor> trust_anchor;
40 43
41 // Path in the forward direction (path[0] is the target cert). 44 // Path in the forward direction (path[0] is the target cert).
42 ParsedCertificateList certs; 45 ParsedCertificateList certs;
43 46
44 // Resets the path to empty path (same as if default constructed). 47 // Resets the path to empty path (same as if default constructed).
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 State next_state_; 165 State next_state_;
163 166
164 Result* out_result_; 167 Result* out_result_;
165 168
166 DISALLOW_COPY_AND_ASSIGN(CertPathBuilder); 169 DISALLOW_COPY_AND_ASSIGN(CertPathBuilder);
167 }; 170 };
168 171
169 } // namespace net 172 } // namespace net
170 173
171 #endif // NET_CERT_INTERNAL_PATH_BUILDER_H_ 174 #endif // NET_CERT_INTERNAL_PATH_BUILDER_H_
OLDNEW
« no previous file with comments | « net/cert/internal/cert_errors.cc ('k') | net/cert/internal/signature_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698