123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- #include "../App.h"
- #include "Enclave_u.h"
- void edger8r_function_attributes(void)
- {
- sgx_status_t ret = SGX_ERROR_UNEXPECTED;
- ret = ecall_function_calling_convs(global_eid);
- if (ret != SGX_SUCCESS)
- abort();
-
- ret = ecall_function_public(global_eid);
- if (ret != SGX_SUCCESS)
- abort();
-
-
- int runned = 0;
- ret = ecall_function_private(global_eid, &runned);
- if (ret != SGX_ERROR_ECALL_NOT_ALLOWED || runned != 0)
- abort();
- }
- void ocall_function_allow(void)
- {
- int runned = 0;
- sgx_status_t ret = SGX_ERROR_UNEXPECTED;
-
- ret = ecall_function_private(global_eid, &runned);
- if (ret != SGX_SUCCESS || runned != 1)
- abort();
- }
|