1Tss2_TctiLdr_FreeInfo(3)   Library Functions Manual   Tss2_TctiLdr_FreeInfo(3)
2
3
4

NAME

6       Tss2_TctiLdr_FreeInfo  -  Function  to  free a TSS2_TCTI_INFO structure
7       allocated by Tss2_TctiLdr_Initialize().
8

SYNOPSIS

10       #include <tss2/tss2_tctildr.h>
11
12
13       void Tss2_TctiLdr_FreeInfo (TSS2_TCTI_INFO*info);
14
15

DESCRIPTION

17       The  Tss2_TctiLdr_FreeInfo()  function  destroys  an  instance  of  the
18       TSS2_TCTI_INFO  structure  created  by the Tss2_TctiLdr_GetInfo() func‐
19       tion.
20
21       The info parameter is a reference to the TSS2_TCTI_INFO structure to be
22       freed.
23
24
25

RETURN VALUE

27       This function returns no value.
28

EXAMPLE

30       Example code.
31
32       #include <inttypes.h>
33       #include <stdlib.h>
34       #include <stdio.h>
35
36       #include <tss2/tss2_tctildr.h>
37
38       TSS2_TCTI_INFO *info = NULL;
39       TSS2_RC rc = Tss2_TctiLdr_GetInfo (NULL, &info);
40       if (rc != TSS2_RC_SUCCESS) {
41           fprintf (stderr, "Failed to get TSS2_TCTI_INFO structure for default "
42                    "TCTI with response code: 0x%" PRIx32 "0, rc);
43           exit (EXIT_FAILURE);
44       }
45
46       if (info != NULL) {
47           Tss2_TctiLdr_FreeInfo (info);
48           info = NULL;
49       }
50
51       exit (EXIT_SUCCESS);
52

AUTHOR

54       Philip Tricca <philip.b.tricca@intel.com>
55

SEE ALSO

57       Tss2_Tcti_Device_Init(3),  Tss2_Tcti_Socket_Init(3),  Tss2_TctiLdr_Ini‐
58       tialize(3), Tss2_TctiLdr_Finalize(3),  tcti-device(7),  tcti-socket(7),
59       tcti-tabrmd(7), tpm2-abrmd(8)
60

COLOPHON

62       This page is part of release 3.0.3 of Open Source implementation of the
63       TCG TPM2 Software Stack (TSS2). A description of the project,  informa‐
64       tion  about  reporting bugs, and the latest version of this page can be
65       found at https://github.com/tpm2-software/tpm2-tss/.
66
67
68
69TPM2 Software Stack                JUNE 2019          Tss2_TctiLdr_FreeInfo(3)
Impressum