Defines an entry in the array of images that an enclave can import.
More...
#include <EnclaveImport.hpp>
Defines an entry in the array of images that an enclave can import.
◆ long_id_t
◆ short_id_t
◆ TYPE
Enumerator |
---|
NONE | None of the identifiers of the image need to match the value in the import record.
|
UNIQUE_ID | The value of the enclave unique identifier of the image must match the value in the import record. Otherwise, loading of the image fails.
|
AUTHOR_ID | The value of the enclave author identifier of the image must match the value in the import record. Otherwise, loading of the image fails. If this flag is set and the import record indicates an author identifier of all zeros, the imported image must be part of the Windows installation.
|
FAMILY_ID | The value of the enclave family identifier of the image must match the value in the import record. Otherwise, loading of the image fails.
|
IMAGE_ID | The value of the enclave image identifier of the image must match the value in the import record. Otherwise, loading of the image fails.
|
◆ EnclaveImport() [1/3]
LIEF::PE::EnclaveImport::EnclaveImport |
( |
| ) |
|
|
default |
◆ EnclaveImport() [2/3]
◆ EnclaveImport() [3/3]
◆ family_id() [1/2]
const short_id_t & LIEF::PE::EnclaveImport::family_id |
( |
| ) |
const |
|
inline |
The family identifier of the primary module for the enclave.
◆ family_id() [2/2]
◆ id() [1/2]
const long_id_t & LIEF::PE::EnclaveImport::id |
( |
| ) |
const |
|
inline |
The unique identifier of the primary module for the enclave, if the type() is TYPE::UNIQUE_ID. Otherwise, the author identifier of the primary module for the enclave.
◆ id() [2/2]
◆ image_id() [1/2]
const short_id_t & LIEF::PE::EnclaveImport::image_id |
( |
| ) |
const |
|
inline |
The image identifier of the primary module for the enclave.
◆ image_id() [2/2]
◆ import_name() [1/2]
const std::string & LIEF::PE::EnclaveImport::import_name |
( |
| ) |
const |
|
inline |
◆ import_name() [2/2]
EnclaveImport & LIEF::PE::EnclaveImport::import_name |
( |
std::string | name | ) |
|
|
inline |
◆ import_name_rva() [1/2]
uint32_t LIEF::PE::EnclaveImport::import_name_rva |
( |
| ) |
const |
|
inline |
The relative virtual address of a NULL-terminated string that contains the same value found in the import directory for the image.
◆ import_name_rva() [2/2]
EnclaveImport & LIEF::PE::EnclaveImport::import_name_rva |
( |
uint32_t | value | ) |
|
|
inline |
◆ min_security_version() [1/2]
uint32_t LIEF::PE::EnclaveImport::min_security_version |
( |
| ) |
const |
|
inline |
The minimum enclave security version that each image must have for the image to be imported successfully. The image is rejected unless its enclave security version is equal to or greater than the minimum value in the import record. Set the value in the import record to zero to turn off the security version check.
◆ min_security_version() [2/2]
EnclaveImport & LIEF::PE::EnclaveImport::min_security_version |
( |
uint32_t | value | ) |
|
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ reserved() [1/2]
uint32_t LIEF::PE::EnclaveImport::reserved |
( |
| ) |
const |
|
inline |
◆ reserved() [2/2]
EnclaveImport & LIEF::PE::EnclaveImport::reserved |
( |
uint32_t | value | ) |
|
|
inline |
◆ to_string()
std::string LIEF::PE::EnclaveImport::to_string |
( |
| ) |
const |
◆ type() [1/2]
TYPE LIEF::PE::EnclaveImport::type |
( |
| ) |
const |
|
inline |
The type of identifier of the image that must match the value in the import record.
◆ type() [2/2]
The documentation for this class was generated from the following file: