Open Enclave  0.17.0

◆ oe_get_evidence()

oe_result_t oe_get_evidence ( const oe_uuid_t format_id,
uint32_t  flags,
const void *  custom_claims_buffer,
size_t  custom_claims_buffer_size,
const void *  optional_parameters,
size_t  optional_parameters_size,
uint8_t **  evidence_buffer,
size_t *  evidence_buffer_size,
uint8_t **  endorsements_buffer,
size_t *  endorsements_buffer_size 
)

oe_get_evidence

Generates the evidence for the given format id. This function is only available in the enclave.

This feature is marked as experimental:
Parameters
[in]format_idThe format ID of the evidence to be generated.
[in]flagsA bit-wise parameter. Currently there is one bit defined: OE_EVIDENCE_FLAGS_EMBED_FORMAT_ID. If this bit is set, the evidence and endorsements will be wrapped with a header containing the format ID.
[in]custom_claims_bufferThe optional custom claims buffer.
[in]custom_claims_buffer_sizeThe number of bytes in the custom claims buffer.
[in]optional_parametersThe optional format-specific input parameters.
[in]optional_parameters_sizeThe size of optional_parameters in bytes.
[out]evidence_bufferAn output pointer that will be assigned the address of the dynamically allocated evidence buffer.
[out]evidence_buffer_sizeA pointer that points to the size of the evidence buffer in bytes.
[out]endorsements_bufferIf not NULL, an output pointer that will be assigned the address of the dynamically allocated endorsements buffer.
[out]endorsements_buffer_sizeA pointer that points to the size of the endorsements buffer in bytes.
Return values
OE_OKThe function succeeded.
OE_INVALID_PARAMETERAt least one of the parameters is invalid.
OE_NOT_FOUNDThe input evidence format id is not supported.
otherappropriate error code.