#include <certificate_table.h>
◆ certificatesIterator
◆ addCertificate()
void retdec::fileformat::CertificateTable::addCertificate |
( |
const Certificate & |
certificate | ) |
|
Add certificate
- Parameters
-
◆ begin()
Get begin certificates iterator
- Returns
- Begin certificates iterator
◆ empty()
bool retdec::fileformat::CertificateTable::empty |
( |
| ) |
const |
Check if certificate table is empty
- Returns
true
if table does not contain any certificates, false
otherwise
◆ end()
Get end certificates iterator
- Returns
- End certificates iterator
◆ getCertificate()
const Certificate * retdec::fileformat::CertificateTable::getCertificate |
( |
std::size_t |
certIndex | ) |
const |
Get selected certificate
- Parameters
-
certIndex | Index of selected certificate (indexed from 0) |
- Returns
- Pointer to selected certificate or
nullptr
if certificate index is invalid
◆ getCounterSignerCertificateIndex()
std::size_t retdec::fileformat::CertificateTable::getCounterSignerCertificateIndex |
( |
| ) |
const |
Get index of the certificate of the counter-signer. Returned value should not be used without prior checking of whether the table has counter-signer certificate.
- Returns
- Index of the counter-signer's certificate
◆ getNumberOfCertificates()
std::size_t retdec::fileformat::CertificateTable::getNumberOfCertificates |
( |
| ) |
const |
Get number of certificates
- Returns
- Number of certificates
◆ getSignerCertificateIndex()
std::size_t retdec::fileformat::CertificateTable::getSignerCertificateIndex |
( |
| ) |
const |
Get index of the certificate of the signer
- Returns
- Index of the signer's certificate
◆ hasCounterSignerCertificate()
bool retdec::fileformat::CertificateTable::hasCounterSignerCertificate |
( |
| ) |
const |
Get whether certificate table has counter-signer certificate
- Returns
true
if has counter-signer, otherwise false
.
◆ hasSignerCertificate()
bool retdec::fileformat::CertificateTable::hasSignerCertificate |
( |
| ) |
const |
Get whether certificate table has signer certificate
- Returns
true
if has signer, otherwise false
.
◆ setCounterSignerCertificateIndex()
void retdec::fileformat::CertificateTable::setCounterSignerCertificateIndex |
( |
std::size_t |
certIndex | ) |
|
Set counter-signer certificate index
- Parameters
-
certIndex | Index of the counter-signer certificate |
◆ setSignerCertificateIndex()
void retdec::fileformat::CertificateTable::setSignerCertificateIndex |
( |
std::size_t |
certIndex | ) |
|
Set signer certificate index
- Parameters
-
certIndex | Index of the signer certificate |
◆ certificates
std::vector<Certificate> retdec::fileformat::CertificateTable::certificates |
|
private |
◆ counterSignerIndex
std::size_t retdec::fileformat::CertificateTable::counterSignerIndex = 0 |
|
private |
index of certificate of the counter-signer
◆ hasCounterSigner
bool retdec::fileformat::CertificateTable::hasCounterSigner = false |
|
private |
flag indicating whether counter signer is present
◆ hasSigner
bool retdec::fileformat::CertificateTable::hasSigner = false |
|
private |
flag indicating whether signer is present
◆ signerIndex
std::size_t retdec::fileformat::CertificateTable::signerIndex = 0 |
|
private |
index of certificate of the signer
The documentation for this class was generated from the following files:
- /var/cache/acbs/build/acbs.6bu6osb6/retdec/include/retdec/fileformat/types/certificate_table/certificate_table.h
- /var/cache/acbs/build/acbs.6bu6osb6/retdec/src/fileformat/types/certificate_table/certificate_table.cpp