Created
July 11, 2018 19:44
-
-
Save sangfansh/35a96c020d08a57d023eb7f8454530f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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