| OLD | NEW |
| (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_ |
| OLD | NEW |