Go to the documentation of this file.
16#ifndef LIEF_PE_ATTRIBUTES_MS_SPC_NESTED_SIG_H
17#define LIEF_PE_ATTRIBUTES_MS_SPC_NESTED_SIG_H
39 friend class SignatureParser;
44 Attribute(Attribute::TYPE::MS_SPC_NESTED_SIGN),
48 MsSpcNestedSignature&
operator=(
const MsSpcNestedSignature&) =
default;
50 std::unique_ptr<Attribute>
clone()
const override {
51 return std::unique_ptr<Attribute>(
new MsSpcNestedSignature{*
this});
53 const Signature&
sig()
const {
58 std::string
print()
const override;
62 void accept(Visitor& visitor)
const override;
64 static bool classof(
const Attribute* attr) {
65 return attr->
type() == Attribute::TYPE::MS_SPC_NESTED_SIGN;
Interface over PKCS #7 attribute.
Definition PE/signature/Attribute.hpp:29
virtual TYPE type() const
Concrete type of the attribute.
Definition PE/signature/Attribute.hpp:62
Interface over the structure described by the OID 1.3.6.1.4.1.311.2.4.1
Definition MsSpcNestedSignature.hpp:36
MsSpcNestedSignature & operator=(const MsSpcNestedSignature &)=default
const Signature & sig() const
Underlying Signature object.
Definition MsSpcNestedSignature.hpp:55
static bool classof(const Attribute *attr)
Definition MsSpcNestedSignature.hpp:64
MsSpcNestedSignature(Signature sig)
Definition MsSpcNestedSignature.hpp:43
MsSpcNestedSignature()=delete
~MsSpcNestedSignature() override=default
MsSpcNestedSignature(const MsSpcNestedSignature &)=default
void accept(Visitor &visitor) const override
std::unique_ptr< Attribute > clone() const override
Definition MsSpcNestedSignature.hpp:50
std::string print() const override
Print information about the attribute.
Namespace related to the LIEF's PE module.
Definition Abstract/Header.hpp:32
LIEF namespace.
Definition Abstract/Binary.hpp:36
#define LIEF_API
Definition visibility.h:41