Skip to content

Instantly share code, notes, and snippets.

@sangfansh
Created July 11, 2018 19:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sangfansh/35a96c020d08a57d023eb7f8454530f1 to your computer and use it in GitHub Desktop.
Save sangfansh/35a96c020d08a57d023eb7f8454530f1 to your computer and use it in GitHub Desktop.
/* Enclave.edl - Top EDL file. */
enclave {
/* Import ECALL/OCALL from sub-directory EDLs.
* [from]: specifies the location of EDL file.
* [import]: specifies the functions to import,
* [*]: implies to import all functions.
*/
trusted {
public void printf_helloworld();
};
/*
* ocall_print_string - invokes OCALL to display string buffer inside the enclave.
* [in]: copy the string buffer to App outside.
* [string]: specifies 'str' is a NULL terminated buffer.
*/
untrusted {
void ocall_print_string([in, string] const char *str);
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment