| 125 | |
| 126 | |
| 127 | unsigned long int initialize_enclave() |
| 128 | { |
| 129 | sgx_status_t ret = SGX_ERROR_UNEXPECTED; |
| 130 | unsigned long int eid; |
| 131 | /* Call sgx_create_enclave to initialize an enclave instance */ |
| 132 | /* Debug Support: set 2nd parameter to 1 */ |
| 133 | ret = sgx_create_enclave("/home/zhangyan/jhrsgx/privacy_test/privacy_tf/sgx_tf_ops/enclave.signed.so", SGX_DEBUG_FLAG, NULL, NULL, &eid, NULL); |
| 134 | if (ret != SGX_SUCCESS) { |
| 135 | printf("Failed to create enclave, ret code: %d\n", ret); |
| 136 | print_error_message(ret); |
| 137 | throw ret; |
| 138 | } |
| 139 | printf("initialize %lu finish.\n",eid); |
| 140 | return eid; |
| 141 | } |
| 142 | |
| 143 | |
| 144 | void destroy_enclave(unsigned long int eid) |
nothing calls this directly
no test coverage detected