Extracts additional platform specific data from the report and writes it to target_info_buffer.
After calling this function, the target_info_buffer can used for the opt_params field in oe_get_report.
For example, on SGX, the target_info_buffer can be used as a sgx_target_info_t for local attestation.
If the target_info_buffer is NULL or the target_info_size parameter is too small, this function returns OE_BUFFER_TOO_SMALL.
- Deprecated:
- This function is deprecated. Use oe_get_target_info_v2() instead.
- Parameters
-
report | The report returned by oe_get_report. |
report_size | The size of report in bytes. |
target_info_buffer | The buffer to where the platform specific data will be placed. |
target_info_size | The size of target_info_buffer. This is set to the required size of target_info_buffer on return. |
- Return values
-
OE_OK | The platform specific data was successfully extracted. |
OE_INVALID_PARAMETER | At least one parameter is invalid. |
OE_BUFFER_TOO_SMALL | target_info_buffer is NULL or too small. |