tpm2-tss  master
TPM Software stack 2.0 TCG spec compliant implementation
Configuration utilities.

Functions

TSS2_RC ifapi_config_initialize_async (IFAPI_IO *io)
 
TSS2_RC ifapi_config_initialize_finish (IFAPI_IO *io, IFAPI_CONFIG *config)
 

Detailed Description

Provides internal fapi functions for deserialization of the configuration data and the initialization of the configuration.

Function Documentation

◆ ifapi_config_initialize_async()

TSS2_RC ifapi_config_initialize_async ( IFAPI_IO io)

Starts the initialization of the FAPI configuration.

Parameters
[in]ioAn IO object for file system access
Return values
TSS2_RC_SUCCESSon success
TSS2_FAPI_RC_BAD_REFERENCEif io is NULL
TSS2_FAPI_RC_IO_ERRORif an error occurred while accessing the object store.
TSS2_FAPI_RC_MEMORYif not enough memory can be allocated.

◆ ifapi_config_initialize_finish()

TSS2_RC ifapi_config_initialize_finish ( IFAPI_IO io,
IFAPI_CONFIG config 
)

Finishes the initialization of the FAPI configuration.

Parameters
[in]ioAn IO object for file system access
[out]configThe configuration that is initialized
Return values
TSS2_RC_SUCCESSon success
TSS2_FAPI_RC_BAD_REFERENCEif config or io is NULL
TSS2_FAPI_RC_BAD_VALUEif the read configuration file does not hold a valid configuration
TSS2_FAPI_RC_GENERAL_FAILUREif JSON parsing fails
TSS2_FAPI_RC_BAD_PATHif the configuration path is invalid
TSS2_FAPI_RC_TRY_AGAINif an I/O operation is not finished yet and this function needs to be called again.
TSS2_FAPI_RC_IO_ERRORif an error occurred while accessing the object store.
TSS2_FAPI_RC_MEMORYif not enough memory can be allocated.