tpm2: add missing dlopen_libcrypto

tpm2_tpmt_signature_to_pem uses openssl functions directly, so it needs
to ensure that it is dlopened.
This commit is contained in:
Chris Coulson
2026-08-21 03:08:31 +09:00
committed by Yu Watanabe
parent 83e9162b93
commit 7ecc970249
+4
View File
@@ -10283,6 +10283,10 @@ int tpm2_tpmt_signature_to_pem(const TPMT_SIGNATURE *signature, char **ret) {
assert(signature);
assert(ret);
r = dlopen_libcrypto(LOG_DEBUG);
if (r < 0)
return r;
const char *label = NULL;
_cleanup_free_ void *sig = NULL;
size_t sig_len = 0;