Skip to content

Commit

Permalink
- fixed report retrieval pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
nshyrei committed Nov 12, 2024
1 parent 1803cb7 commit 7f58613
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions intel-sgx/ppid-retrieval-tool/Enclave/ppid.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ sgx_status_t entry_point(uint8_t *decrypted_ppid) {
sgx_status_t sgx_status = SGX_SUCCESS;
sgx_report_t id_enclave_report;

sgx_target_info_t* pce_target_info;
sgx_target_info_t pce_target_info;
sgx_report_data_t report_data = { 0 };

if (!(pce_target_info = (sgx_target_info_t*)malloc(sizeof(sgx_target_info_t)))) {
Expand All @@ -78,7 +78,7 @@ sgx_status_t entry_point(uint8_t *decrypted_ppid) {
goto CLEANUP;
}

if (SGX_SUCCESS != (sgx_status = pce_get_target_info(pce_target_info))) {
if (SGX_SUCCESS != (sgx_status = pce_get_target_info(&pce_target_info))) {
print_err_status("Failed to call into the PCE: pce_get_target_info. The error code is: 0x%04x.\n", sgx_status);
goto CLEANUP;
}
Expand Down
2 changes: 1 addition & 1 deletion intel-sgx/ppid-retrieval-tool/Enclave/ppid.edl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ untrusted {
[out]pce_info_t *pce_info,
[out] uint8_t *signature_scheme);

uint32_t pce_get_target_info([out]sgx_target_info_t *pce_target_info);
sgx_target_info_t* pce_get_target_info();

void print_err_status([in,string] char *str, sgx_status_t err_status);
};
Expand Down

0 comments on commit 7f58613

Please sign in to comment.