Intel® Software Guard Extensions (Intel® SGX)
Discussion board focused on hardware-based isolation and memory encryption to provide extended code protection in solutions.

Unable to pass C struct with typedef to ECALL

Guy_M_
Novice
515 Views

I need to pass a structure with a typedef to an ECALL from within the enclave. The structure is defined in "Def.h" and include in the .edl file.

What am I doing wrong? without the typedef, it works fine.

 

Def.h

Selection_013.png

enclave.edlSelection_017.png

my error

Selection_016.png

 

 

0 Kudos
1 Reply
Hoang_N_Intel
Employee
515 Views

This is a common user error in defining EDL file. When you include a header file in EDL file, you are not supposed to add the "#" sign. Please update the code to have only

include "Def.h"

instead of

#include "Def.h"

 

0 Kudos
Reply