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

NAME

6       Tss2_TctiLdr_Finalize  -  Function to finalize a TCTI context instanti‐
7       ated by the Tss2_TctiLdr_Initialize function.
8

SYNOPSIS

10       #include <tss2/tss2_tctildr.h>
11
12
13       TSS2_RC Tss2_TctiLdr_Finalize (TSS2_TCTI_CONTEXT **CONTEXT);
14
15

DESCRIPTION

17       The Tss2_TctiLdr_Finalize() function destroys an  instance  of  a  TCTI
18       context  instantiated by the Tss2_TctLdr_Initialize() function. It also
19       frees any resources associated with loading the required TCTI library.
20
21       The context parameter is a double pointer to a TCTI context. When  suc‐
22       cessfully  finalized  the provided reference will be set to NULL by the
23       function.
24
25
26

RETURN VALUE

28       This function returns no value.
29

EXAMPLE

31       Example code.
32
33       #include <inttypes.h>
34       #include <stdlib.h>
35       #include <stdio.h>
36
37       #include <tss2/tss2_tctildr.h>
38
39       TSS2_TCTI_CONTEXT *ctx = NULL;
40       TSS2_RC rc = Tss2_TctiLdr_Initialize (NULL, NULL, &ctx);
41       if (rc != TSS2_RC_SUCCESS) {
42           fprintf (stderr, "Initialization of default TCTI context failed with "
43                    "response code: 0x%" PRIx32 "0, rc);
44           exit (EXIT_FAILURE);
45       }
46
47       if (ctx != NULL)
48           Tss2_TctiLdr_Finalize (&ctx);
49
50       exit (EXIT_SUCCESS);
51

AUTHOR

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

SEE ALSO

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

COLOPHON

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