Go to the documentation of this file.
16#ifndef LIEF_PE_ATTRIBUTES_PKCS9_COUNTER_SIG_H
17#define LIEF_PE_ATTRIBUTES_PKCS9_COUNTER_SIG_H
41 friend class SignatureParser;
46 Attribute(Attribute::TYPE::PKCS9_COUNTER_SIGNATURE),
47 signer_{std::move(signer)}
51 PKCS9CounterSignature&
operator=(
const PKCS9CounterSignature&) =
default;
53 std::unique_ptr<Attribute>
clone()
const override {
54 return std::unique_ptr<Attribute>(
new PKCS9CounterSignature{*
this});
56 const SignerInfo&
signer()
const {
61 std::string
print()
const override;
65 static bool classof(
const Attribute* attr) {
66 return attr->
type() == Attribute::TYPE::PKCS9_COUNTER_SIGNATURE;
69 void accept(Visitor& visitor)
const override;
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.2.840.113549.1.9.6 (PKCS #9)
Definition PKCS9CounterSignature.hpp:38
PKCS9CounterSignature(SignerInfo signer)
Definition PKCS9CounterSignature.hpp:45
static bool classof(const Attribute *attr)
Definition PKCS9CounterSignature.hpp:65
std::string print() const override
Print information about the attribute.
PKCS9CounterSignature()=delete
void accept(Visitor &visitor) const override
~PKCS9CounterSignature() override=default
std::unique_ptr< Attribute > clone() const override
Definition PKCS9CounterSignature.hpp:53
PKCS9CounterSignature(const PKCS9CounterSignature &)=default
const SignerInfo & signer() const
SignerInfo as described in the RFC #2985.
Definition PKCS9CounterSignature.hpp:58
PKCS9CounterSignature & operator=(const PKCS9CounterSignature &)=default
Definition VectorStream.hpp:29
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