ta/wallet_ta.c
/**
  * Closes the wallet storage meaning that closes the persistent object that
  * contains the data stream with the wallet storage.
  * \param session_data A data pointer to a session context.
  * \param param_types The types of the four parameters.
  * \param params A pointer to an array of four parameters.
  * \return TEE_SUCCESS in case of success otherwise returns the result
  *         received from the failed operation. The information about all
  *         possible returns is present in TEE Client API Specification - 4.4.2
  *         published by GlobalPlatform.
  */
Closes the wallet storage meaning that closes the persistent object that
contains the data stream with the wallet storage.
\param session_data A data pointer to a session context.
\param param_types The types of the four parameters.
\param params A pointer to an array of four parameters.
\return TEE_SUCCESS in case of success otherwise returns the result
received from the failed operation. The information about all
possible returns is present in TEE Client API Specification - 4.4.2
published by GlobalPlatform.
Closes the wallet storage meaning that closes the persistent object that contains the data stream with the wallet storage . \ param session_data A data pointer to a session context . \ param param_types The types of the four parameters . \ param params A pointer to an array of four parameters . \ return TEE_SUCCESS in case of success otherwise returns the result received from the failed operation . The information about all possible returns is present in TEE Client API Specification - 4 . 4 . 2 published by GlobalPlatform .
static TEE_Result close_wallet_storage(Session_data * session_data, uint32_t param_types, TEE_Param params[4])
{
	uint32_t exp_param_types = TEE_PARAM_TYPES(
									TEE_PARAM_TYPE_NONE,
									TEE_PARAM_TYPE_NONE,
									TEE_PARAM_TYPE_NONE,
									TEE_PARAM_TYPE_NONE);
	if (param_types != exp_param_types)
		return TEE_ERROR_BAD_PARAMETERS;
	if (session_data->is_storage_open == false
		|| session_data->is_storage_created == false)
		return TEE_ERROR_BAD_STATE;
	(void)&params;
	TEE_CloseObject(*(session_data->wallet_handle));
	*(session_data->wallet_handle) = TEE_HANDLE_NULL;
	session_data->is_storage_open = false;
	return TEE_SUCCESS;
}
static TEE_Result close_wallet_storage ( Session_data * session_data , uint32_t param_types , TEE_Param params [ 4 ] ) { uint32_t exp_param_types = TEE_PARAM_TYPES ( TEE_PARAM_TYPE_NONE , TEE_PARAM_TYPE_NONE , TEE_PARAM_TYPE_NONE , TEE_PARAM_TYPE_NONE ) ; if ( param_types != exp_param_types ) return TEE_ERROR_BAD_PARAMETERS ; if ( session_data -> is_storage_open == false || session_data -> is_storage_created == false ) return TEE_ERROR_BAD_STATE ; ( void ) & params ; TEE_CloseObject ( * ( session_data -> wallet_handle ) ) ; * ( session_data -> wallet_handle ) = TEE_HANDLE_NULL ; session_data -> is_storage_open = false ; return TEE_SUCCESS ; }
Closes the wallet storage meaning that closes the persistent object that
 contains the data stream with the wallet storage.
Closes the wallet storage meaning that closes the persistent object that contains the data stream with the wallet storage .
/* It is not expected any parameters */ /* Check the type of the parameters received */ /* Check if the storage was already open or created */ /* Unused parameters */ /* Close the wallet storage */