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

Side by Side Diff: net/tools/ct_mapper/entry.h

Issue 1238413004: Framework for iterating over certificates in CT database from Chromium code. (not for review) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make samples page work Created 3 years, 6 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/tools/ct_mapper/dump-ct.sh ('k') | net/tools/ct_mapper/entry.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef NET_TOOLS_CT_MAPPER_ENTRY_H_
6 #define NET_TOOLS_CT_MAPPER_ENTRY_H_
7
8 #include <vector>
9
10 #include "net/der/input.h"
11
12 namespace net {
13
14 class Entry {
15 public:
16 enum class Type {
17 // Corresponds with X509_entry (i.e. NOT a precert)
18 kLeafCert,
19
20 // This is a fabricated type to simplify iterating over all the extra certs
21 // in addition to the leaf certs.
22 kExtraCert,
23 };
24
25 Entry();
26 explicit Entry(const der::Input& cert);
27 Entry(Type type, const der::Input& cert);
28 Entry(const Entry&);
29 ~Entry();
30
31 Type type = Type::kLeafCert;
32
33 net::der::Input cert;
34 std::vector<der::Input> extra_certs;
35 };
36
37 } // namespace net
38
39 #endif // NET_TOOLS_CT_MAPPER_ENTRY_H_
OLDNEW
« no previous file with comments | « net/tools/ct_mapper/dump-ct.sh ('k') | net/tools/ct_mapper/entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698