Open Enclave
oe_result_t oe_call_host ( const char *  func,
void *  args 
)

Perform a high-level enclave function call (OCALL).

Call the host function whose name is given by the func parameter. The host must define a corresponding function with the following prototype.

OE_OCALL void (*)(void* args);

The meaning of the args parameter is defined by the implementer of the function and may be null.

Note that the return value of this function only indicates the success of the call and not of the underlying function. The OCALL implementation must define its own error reporting scheme based on args.

While handling the OCALL, the host is not allowed to make an ECALL back into the enclave. A re-entrant ECALL will fail and return OE_REENTRANT_ECALL.

Parameters
funcThe name of the enclave function that will be called.
argsThe arguments to be passed to the enclave function.
Returns
This function return OE_OK on success.