| Index: net/tools/ct_mapper/entry.h
|
| diff --git a/net/tools/ct_mapper/entry.h b/net/tools/ct_mapper/entry.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2ee30ddb419a279dee1300d151573ebf99b2ef50
|
| --- /dev/null
|
| +++ b/net/tools/ct_mapper/entry.h
|
| @@ -0,0 +1,39 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef NET_TOOLS_CT_MAPPER_ENTRY_H_
|
| +#define NET_TOOLS_CT_MAPPER_ENTRY_H_
|
| +
|
| +#include <vector>
|
| +
|
| +#include "net/der/input.h"
|
| +
|
| +namespace net {
|
| +
|
| +class Entry {
|
| + public:
|
| + enum class Type {
|
| + // Corresponds with X509_entry (i.e. NOT a precert)
|
| + kLeafCert,
|
| +
|
| + // This is a fabricated type to simplify iterating over all the extra certs
|
| + // in addition to the leaf certs.
|
| + kExtraCert,
|
| + };
|
| +
|
| + Entry();
|
| + explicit Entry(const der::Input& cert);
|
| + Entry(Type type, const der::Input& cert);
|
| + Entry(const Entry&);
|
| + ~Entry();
|
| +
|
| + Type type = Type::kLeafCert;
|
| +
|
| + net::der::Input cert;
|
| + std::vector<der::Input> extra_certs;
|
| +};
|
| +
|
| +} // namespace net
|
| +
|
| +#endif // NET_TOOLS_CT_MAPPER_ENTRY_H_
|
|
|