LIEF: Library to Instrument Executable Formats Version 0.16.0
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
17#ifndef LIEF_PE_ATTRIBUTES_SPC_SP_OPUS_INFO_H
18#define LIEF_PE_ATTRIBUTES_SPC_SP_OPUS_INFO_H
42 friend class SignatureParser;
46 Attribute(Attribute::TYPE::SPC_SP_OPUS_INFO),
47 program_name_(std::move(program_name)),
48 more_info_(std::move(more_info))
56 SpcSpOpusInfo&
operator=(
const SpcSpOpusInfo&) =
default;
58 std::unique_ptr<Attribute>
clone()
const override {
59 return std::unique_ptr<Attribute>(
new SpcSpOpusInfo{*
this});
71 std::string
print()
const override;
75 static bool classof(
const Attribute* attr) {
76 return attr->
type() == Attribute::TYPE::SPC_SP_OPUS_INFO;
79 void accept(Visitor& visitor)
const override;
84 std::string program_name_;
85 std::string more_info_;
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.1.12
Definition SpcSpOpusInfo.hpp:39
const std::string & program_name() const
Program description provided by the publisher.
Definition SpcSpOpusInfo.hpp:63
SpcSpOpusInfo(std::string program_name, std::string more_info)
Definition SpcSpOpusInfo.hpp:45
std::unique_ptr< Attribute > clone() const override
Definition SpcSpOpusInfo.hpp:58
SpcSpOpusInfo & operator=(const SpcSpOpusInfo &)=default
std::string print() const override
Print information about the attribute.
SpcSpOpusInfo()
Definition SpcSpOpusInfo.hpp:51
void accept(Visitor &visitor) const override
const std::string & more_info() const
Other information such as an url.
Definition SpcSpOpusInfo.hpp:68
~SpcSpOpusInfo() override=default
static bool classof(const Attribute *attr)
Definition SpcSpOpusInfo.hpp:75
SpcSpOpusInfo(const SpcSpOpusInfo &)=default
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