tpm2-tss  master
TPM Software stack 2.0 TCG spec compliant implementation
Fapi_GetTcti

Functions

TSS2_RC Fapi_GetTcti (FAPI_CONTEXT *context, TSS2_TCTI_CONTEXT **tcti)
 

Detailed Description

FAPI function to retrieve the TSS2_TCTI_CONTEXT currently used by the corresponding FAPI_CONTEXT.

Function Documentation

◆ Fapi_GetTcti()

Fapi_GetTcti ( FAPI_CONTEXT context,
TSS2_TCTI_CONTEXT **  tcti 
)

One-Call function for Fapi_GetTcti

Fapi_GetTcti returns the TSS2_TCTI_CONTEXT currently used by the provided FAPI_CONTEXT. The purpose is to enable advanced access to the TPM that is currently being talked to. It is especially useful in combination with Fapi_GetTpmBlobs().

Note: The application must ensure that this TSS2_TCTI_CONTEXT is not being used in parallel to the processing of a FAPI command.

Parameters
[in,out]contextThe FAPI_CONTEXT
[out]tctiThe TSS2_TCTI_CONTEXT used to talk to the current TPM.
Return values
TSS2_RC_SUCCESSif the function call was a success.
TSS2_FAPI_RC_BAD_REFERENCEif context, tcti is NULL.
TSS2_FAPI_RC_BAD_CONTEXTif context corruption is detected.
TSS2_FAPI_RC_NO_TPMif FAPI was started in non-TPM mode.