1Tss2_TctiLdr_Finalize(3) Library Functions Manual Tss2_TctiLdr_Finalize(3)
2
3
4
6 Tss2_TctiLdr_Finalize - Function to finalize a TCTI context instanti‐
7 ated by the Tss2_TctiLdr_Initialize function.
8
10 #include <tss2/tss2_tctildr.h>
11
12
13 TSS2_RC Tss2_TctiLdr_Finalize (TSS2_TCTI_CONTEXT **CONTEXT);
14
15
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
28 This function returns no value.
29
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
53 Philip Tricca <philip.b.tricca@intel.com>
54
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
61 This page is part of release 2.3.1 of Intel's implementation of the TCG
62 TPM2 Software Stack (TSS2). A description of the project, information
63 about reporting bugs, and the latest version of this page can be found
64 at https://github.com/01org/tpm2-tss/.
65
66
67
68TPM2 Software Stack MARCH 2019 Tss2_TctiLdr_Finalize(3)