[−][src]Function sgx_tservice::rsgx_create_pse_session
pub fn rsgx_create_pse_session() -> SgxError
rsgx_create_pse_session creates a session with the PSE.
Description
An Intel(R) SGX enclave first calls rsgx_create_pse_session() in the process to request platform service.
It's suggested that the caller should wait (typically several seconds to tens of seconds) and retry this API if SGX_ERROR_BUSY is returned.
Requirements
Header: sgx_tae_service.edl
Library: libsgx_tservice.a
Errors
SGX_ERROR_SERVICE_UNAVAILABLE
The AE service did not respond or the requested service is not supported.
SGX_ERROR_SERVICE_TIMEOUT
A request to the AE service timed out.
SGX_ERROR_BUSY
The requested service is temporarily not available.
SGX_ERROR_OUT_OF_MEMORY
Not enough memory is available to complete this operation.
SGX_ERROR_NETWORK_FAILURE
Network connecting or proxy setting issue was encountered.
SGX_ERROR_OUT_OF_EPC
There is not enough EPC memory to load one of the Architecture Enclaves needed to complete this operation.
SGX_ERROR_UPDATE_NEEDED
Intel(R) SGX needs to be updated.
SGX_ERROR_UNEXPECTED
Indicates an unexpected error occurred.