Tss2_TctiLdr_FreeInfo(3)

Tss2_TctiLdr_FreeInfo3

Function to free a tss2_tcti_info structure allocated by tss2_tctildr_initialize().

Usage

#include <tss2/tss2_tctildr.h>

void Tss2_TctiLdr_FreeInfo (TSS2_TCTI_INFO*info);

Overview

The Tss2_TctiLdr_FreeInfo() function destroys an instance of the TSS2_TCTI_INFO structure created by the Tss2_TctiLdr_GetInfo() function.

The info parameter is a reference to the TSS2_TCTI_INFO structure to be freed.

Return value

This function returns no value.

Examples

Example code.

#include <inttypes.h>
#include <stdlib.h>
#include <stdio.h>
#include <tss2/tss2_tctildr.h>
TSS2_TCTI_INFO *info = NULL;
TSS2_RC rc = Tss2_TctiLdr_GetInfo (NULL, &info);
if (rc != TSS2_RC_SUCCESS) {
    fprintf (stderr, "Failed to get TSS2_TCTI_INFO structure for default "
             "TCTI with response code: 0x%" PRIx32 "0, rc);
    exit (EXIT_FAILURE);
}
if (info != NULL) {
    Tss2_TctiLdr_FreeInfo (info);
    info = NULL;
}
exit (EXIT_SUCCESS);

Releases

3 releases since Debian 12 (Bookworm); the text changed 2 times.

  1. 12
  2. 13
  3. Arch

Author

TPM2 Software Project <https://github.com/tpm2-software/tpm2-tss>

Colophon

This page is part of release 4.2.0 of Open Source implementation of the TCG TPM2 Software Stack (TSS2). A description of the project, information about reporting bugs, and the latest version of this page can be found at https://github.com/tpm2-software/tpm2-tss/.

License

This work is licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0). For more information visit https://creativecommons.org/licenses/by/4.0/

From tpm2-tss 4.2.0-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.