Get a report signed by the enclave platform for use in attestation.
This function creates a report to be used in local or remote attestation.
If the report_buffer is NULL or report_size parameter is too small, this function returns OE_BUFFER_TOO_SMALL.
- Deprecated:
- This function is deprecated. Use oe_get_report_v2() instead.
- Parameters
-
enclave | The instance of the enclave that will generate the report. |
flags | Specifying default value (0) generates a report for local attestation. Specifying OE_REPORT_FLAGS_REMOTE_ATTESTATION generates a report for remote attestation. |
opt_params | Optional additional parameters needed for the current enclave type. For SGX, this can be sgx_target_info_t for local attestation. |
opt_params_size | The size of the opt_params buffer. |
report_buffer | The buffer to where the resulting report will be copied. |
report_buffer_size | The size of the report buffer. This is set to the required size of the report buffer on return. |
- Return values
-
OE_OK | The report was successfully created. |
OE_INVALID_PARAMETER | At least one parameter is invalid. |
OE_BUFFER_TOO_SMALL | The report_buffer buffer is NULL or too small. |
OE_OUT_OF_MEMORY | Failed to allocate memory. |