Ejemplo n.º 1
0
TEE_Result TEE_AllocatePersistentObjectEnumerator(TEE_ObjectEnumHandle *
        objectEnumerator)
{
    TEE_Result res;

    if (objectEnumerator == NULL)
        return TEE_ERROR_BAD_PARAMETERS;

    res = utee_storage_alloc_enum(objectEnumerator);

    if (res != TEE_SUCCESS)
        *objectEnumerator = TEE_HANDLE_NULL;

    return res;
}
Ejemplo n.º 2
0
TEE_Result TEE_AllocatePersistentObjectEnumerator(TEE_ObjectEnumHandle *
						  objectEnumerator)
{
	TEE_Result res;

	if (!objectEnumerator)
		return TEE_ERROR_BAD_PARAMETERS;

	res = utee_storage_alloc_enum(objectEnumerator);

	if (res != TEE_SUCCESS)
		*objectEnumerator = TEE_HANDLE_NULL;

	if (res != TEE_SUCCESS &&
	    res != TEE_ERROR_ACCESS_CONFLICT)
		TEE_Panic(0);

	return res;
}
Ejemplo n.º 3
0
TEE_Result TEE_AllocatePersistentObjectEnumerator(TEE_ObjectEnumHandle *
						  objectEnumerator)
{
	TEE_Result res;
	uint32_t oe;

	if (!objectEnumerator)
		return TEE_ERROR_BAD_PARAMETERS;

	res = utee_storage_alloc_enum(&oe);

	if (res != TEE_SUCCESS)
		oe = TEE_HANDLE_NULL;

	*objectEnumerator = (TEE_ObjectEnumHandle)(uintptr_t)oe;

	if (res != TEE_SUCCESS &&
	    res != TEE_ERROR_ACCESS_CONFLICT)
		TEE_Panic(res);

	return res;
}