16#ifndef LIEF_PE_ATTRIBUTES_GENERIC_TYPE_H
17#define LIEF_PE_ATTRIBUTES_GENERIC_TYPE_H
47 std::unique_ptr<Attribute>
clone()
const override {
48 return std::unique_ptr<Attribute>(
new GenericType{*
this});
62 std::string
print()
const override;
69 return attr->
type() == Attribute::TYPE::GENERIC_TYPE;
74 std::vector<uint8_t> raw_;
Interface over PKCS #7 attribute.
Definition PE/signature/Attribute.hpp:28
TYPE
Definition PE/signature/Attribute.hpp:34
virtual TYPE type() const
Concrete type of the attribute.
Definition PE/signature/Attribute.hpp:61
Interface over an attribute for which the internal structure is not supported by LIEF.
Definition GenericType.hpp:31
GenericType & operator=(const GenericType &)=default
std::unique_ptr< Attribute > clone() const override
Definition GenericType.hpp:47
~GenericType() override=default
void accept(Visitor &visitor) const override
GenericType()
Definition GenericType.hpp:36
span< const uint8_t > raw_content() const
Original DER blob of the attribute.
Definition GenericType.hpp:57
GenericType(const GenericType &)=default
GenericType(oid_t oid, std::vector< uint8_t > raw)
Definition GenericType.hpp:39
const oid_t & oid() const
OID of the original attribute.
Definition GenericType.hpp:52
std::string print() const override
Print information about the attribute.
static bool classof(const Attribute *attr)
Definition GenericType.hpp:68
Main interface to parse PE binaries. In particular the static functions: Parser::parse should be used...
Definition PE/Parser.hpp:47
Definition SignatureParser.hpp:37
Definition Visitor.hpp:224
std::string oid_t
Definition PE/signature/types.hpp:23
LIEF namespace.
Definition Abstract/Binary.hpp:32
tcb::span< ElementType, Extent > span
Definition span.hpp:22
#define LIEF_API
Definition visibility.h:41