LIEF: Library to Instrument Executable Formats
Version 2.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
lief-install
x86_64
static
include
LIEF
PE
signature
PKCS9TSTInfo.hpp
Go to the documentation of this file.
1
/* Copyright 2017 - 2026 R. Thomas
2
*
3
* Licensed under the Apache License, Version 2.0 (the "License");
4
* you may not use this file except in compliance with the License.
5
* You may obtain a copy of the License at
6
*
7
* http://www.apache.org/licenses/LICENSE-2.0
8
*
9
* Unless required by applicable law or agreed to in writing, software
10
* distributed under the License is distributed on an "AS IS" BASIS,
11
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
* See the License for the specific language governing permissions and
13
* limitations under the License.
14
*/
15
#ifndef LIEF_PE_PKCS9_TSTINFO_H
16
#define LIEF_PE_PKCS9_TSTINFO_H
17
#include <memory>
18
#include <ostream>
19
20
#include "
LIEF/PE/signature/ContentInfo.hpp
"
21
#include "
LIEF/Visitor.hpp
"
22
#include "
LIEF/visibility.h
"
23
24
25
namespace
LIEF::PE
{
26
59
class
LIEF_API
PKCS9TSTInfo
:
public
ContentInfo::Content
{
60
friend
class
SignatureParser
;
61
62
public
:
63
static
constexpr
auto
PKCS9_TSTINFO_OBJID
=
"1.2.840.113549.1.9.16.1.4"
;
64
PKCS9TSTInfo
() :
65
ContentInfo
::
Content
(
PKCS9_TSTINFO_OBJID
) {}
66
PKCS9TSTInfo
(
const
PKCS9TSTInfo
&) =
default
;
67
PKCS9TSTInfo
&
operator=
(
const
PKCS9TSTInfo
&) =
default
;
68
69
std::unique_ptr<Content>
clone
()
const override
{
70
return
std::unique_ptr<Content>(
new
PKCS9TSTInfo
{*
this
});
71
}
72
73
void
print
(std::ostream&
/*os*/
)
const override
{
74
return
;
75
}
76
77
void
accept
(
Visitor
& visitor)
const override
;
78
79
~PKCS9TSTInfo
()
override
=
default
;
80
81
static
bool
classof
(
const
ContentInfo::Content
* content) {
82
return
content->
content_type
() ==
PKCS9_TSTINFO_OBJID
;
83
}
84
85
private
:
86
uint32_t version_ = 0;
87
};
88
}
89
90
#endif
ContentInfo.hpp
Visitor.hpp
LIEF::PE::ContentInfo::Content
Definition
ContentInfo.hpp:85
LIEF::PE::ContentInfo::Content::content_type
const oid_t & content_type() const
Definition
ContentInfo.hpp:90
LIEF::PE::ContentInfo::Content::Content
Content(oid_t oid)
Definition
ContentInfo.hpp:87
LIEF::PE::ContentInfo
Definition
ContentInfo.hpp:80
LIEF::PE::PKCS9TSTInfo::print
void print(std::ostream &) const override
Definition
PKCS9TSTInfo.hpp:73
LIEF::PE::PKCS9TSTInfo::classof
static bool classof(const ContentInfo::Content *content)
Definition
PKCS9TSTInfo.hpp:81
LIEF::PE::PKCS9TSTInfo::PKCS9_TSTINFO_OBJID
static constexpr auto PKCS9_TSTINFO_OBJID
Definition
PKCS9TSTInfo.hpp:63
LIEF::PE::PKCS9TSTInfo::operator=
PKCS9TSTInfo & operator=(const PKCS9TSTInfo &)=default
LIEF::PE::PKCS9TSTInfo::accept
void accept(Visitor &visitor) const override
LIEF::PE::PKCS9TSTInfo::SignatureParser
friend class SignatureParser
Definition
PKCS9TSTInfo.hpp:60
LIEF::PE::PKCS9TSTInfo::PKCS9TSTInfo
PKCS9TSTInfo()
Definition
PKCS9TSTInfo.hpp:64
LIEF::PE::PKCS9TSTInfo::clone
std::unique_ptr< Content > clone() const override
Definition
PKCS9TSTInfo.hpp:69
LIEF::PE::PKCS9TSTInfo::~PKCS9TSTInfo
~PKCS9TSTInfo() override=default
LIEF::PE::PKCS9TSTInfo::PKCS9TSTInfo
PKCS9TSTInfo(const PKCS9TSTInfo &)=default
LIEF::Visitor
Definition
Visitor.hpp:211
LIEF::PE
Namespace related to the LIEF's PE module.
Definition
Abstract/Header.hpp:31
visibility.h
LIEF_API
#define LIEF_API
Definition
visibility.h:44
Generated by
1.19.0