tpm2-util: properly load tpm2 libraries befre unsealing
authorLennart Poettering <lennart@poettering.net>
Tue, 6 Apr 2021 09:46:19 +0000 (11:46 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 6 Apr 2021 16:43:24 +0000 (18:43 +0200)
commit1b30720c1b22df75e147cc201f240db23881672d
treed55894596b35494ed8cdd845dd786d69df59bfe3
parentff2cf6f8fe09efee492af164412f0fc771eddec9
tpm2-util: properly load tpm2 libraries befre unsealing

We forgot a call to dlopen_tpm2() in the unseal codepaths. As long as
automatic TPM2 device discovery was used that didn't matter, since in
that codepaths we'd have another call dlopen_tpm2(). But with an
explicitly configured TPM2 device things should work too, hence add the
missing call.

Fixes: #19206
src/shared/tpm2-util.c