---
name: "Fapi_GetTcti"
section: "3"
platform: "linux"
package: "tpm2-tss"
version: "4.2.0-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/Fapi_GetTcti"
---

# Fapi\_GetTcti(3)

Fapi\_GetTcti

## NAME

Fapi\_GetTcti - Fapi\_GetTcti

## SYNOPSIS

### 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

### TSS2\_RC 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**

*context* The **FAPI\_CONTEXT** \
 *tcti* The TSS2\_TCTI\_CONTEXT used to talk to the current TPM.

**Return values**

*TSS2\_RC\_SUCCESS* if the function call was a success. \
 *TSS2\_FAPI\_RC\_BAD\_REFERENCE* if context, tcti is NULL. \
 *TSS2\_FAPI\_RC\_BAD\_CONTEXT* if context corruption is detected. \
 *TSS2\_FAPI\_RC\_NO\_TPM* if FAPI was started in non-TPM mode.

## Author

Generated automatically by Doxygen for tpm2-tss from the source code.
