• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
Process this file with
groff -man -Tascii foo.1

Tss2_TctiLdr_FreeInfo 3 "JUNE 2019" "TPM2 Software Stack"
NAME
Tss2_TctiLdr_FreeInfo - Function to free a TSS2_TCTI_INFO structure allocated by Tss2_TctiLdr_Initialize ().
SYNOPSIS
#include <tss2/tss2_tctildr.h> "void Tss2_TctiLdr_FreeInfo (TSS2_TCTI_INFO" "*info" ");"
DESCRIPTION
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.
EXAMPLE
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 "\n", rc);
 exit (EXIT_FAILURE);
}

if (info != NULL) {
 Tss2_TctiLdr_FreeInfo (info);
 info = NULL;
}

exit (EXIT_SUCCESS);