12345678910111213141516171819 |
- #include <cstdio>
- #include "sgx_urts.h"
- #include "Untrusted.hpp"
- int main(int argc, char **argv)
- {
- char buf[30];
- if (initialize_enclave() < 0) {
- return -1;
- }
- ecall_hello_enclave(buf, sizeof(buf));
- puts(buf);
- sgx_destroy_enclave(global_eid);
- }
|