Tss2_TctiLdr_Finalize3
Function to finalize a tcti context instantiated by the tss2_tctildr_initialize function.
Usage
#include <tss2/tss2_tctildr.h>
TSS2_RC Tss2_TctiLdr_Finalize (TSS2_TCTI_CONTEXT **CONTEXT);
Overview
The Tss2_TctiLdr_Finalize() function destroys an instance of a TCTI context instantiated by the Tss2_TctLdr_Initialize() function. It also frees any resources associated with loading the required TCTI library.
The context parameter is a double pointer to a TCTI context. When successfully finalized the provided reference will be set to NULL by the function.
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_CONTEXT *ctx = NULL;
TSS2_RC rc = Tss2_TctiLdr_Initialize (NULL, NULL, &ctx);
if (rc != TSS2_RC_SUCCESS) {
fprintf (stderr, "Initialization of default TCTI context failed with "
"response code: 0x%" PRIx32 "0, rc);
exit (EXIT_FAILURE);
}
if (ctx != NULL)
Tss2_TctiLdr_Finalize (&ctx);
exit (EXIT_SUCCESS);
Releases
3 releases since Debian 12 (Bookworm); the text changed 2 times.