The calls outside tpm2-util.c are redundant, as tpm2_context_new()
is always called immediately after, which then calls dlopen_tpm2().
return EXIT_SUCCESS;
}
- r = dlopen_tpm2();
- if (r < 0)
- return log_error_errno(r, "Failed to load TPM2 libraries: %m");
-
_cleanup_tpm2_context_ Tpm2Context *c = NULL;
r = tpm2_context_new(arg_tpm2_device, &c);
if (r < 0)
}
#if HAVE_TPM2
- r = dlopen_tpm2();
- if (r < 0)
- return log_error_errno(r, "Failed to load TPM2 libraries: %m");
-
_cleanup_tpm2_context_ Tpm2Context *c = NULL;
r = tpm2_context_new(arg_tpm2_device, &c);
if (r < 0)