|
@@ -291,6 +291,11 @@ sgx_status_t sgx_read_rand(unsigned char *rand, size_t length_in_bytes)
|
|
|
return SGX_SUCCESS;
|
|
|
}
|
|
|
|
|
|
+int sgx_is_enclave_crashed()
|
|
|
+{
|
|
|
+ return get_enclave_state() == ENCLAVE_CRASHED;
|
|
|
+}
|
|
|
+
|
|
|
extern uintptr_t __stack_chk_guard;
|
|
|
int check_static_stack_canary(void *tcs)
|
|
|
{
|
|
@@ -301,4 +306,3 @@ int check_static_stack_canary(void *tcs)
|
|
|
}
|
|
|
return 0;
|
|
|
}
|
|
|
-
|