]> git.ipfire.org Git - thirdparty/systemd.git/commit
tpm2-util: add generic wrapper tpm2_context_new_or_warn() that wrpas tpm2_context_new...
authorLennart Poettering <lennart@poettering.net>
Mon, 22 Apr 2024 07:46:23 +0000 (09:46 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 22 Apr 2024 10:40:09 +0000 (12:40 +0200)
commit21a3bc6b9f01c3b0bf906c0b28f8827db086edf8
tree09615be569defc4752fbc2439b01d4fe61d5c41c
parent2fa480592d4f4334881361c5558f563e5ea4c9c3
tpm2-util: add generic wrapper tpm2_context_new_or_warn() that wrpas tpm2_context_new and logs about errors

We so far just print a short log message that is not very useful, let's
add some recognizable error codes, and output better log messages if we
can't get TPM stuff to work.

Fixes: #31925
12 files changed:
src/analyze/analyze-srk.c
src/cryptenroll/cryptenroll-tpm2.c
src/cryptsetup/cryptsetup-tokens/luks2-tpm2.c
src/cryptsetup/cryptsetup.c
src/partition/repart.c
src/pcrextend/pcrextend.c
src/pcrlock/pcrlock.c
src/shared/creds-util.c
src/shared/cryptsetup-tpm2.c
src/shared/tpm2-util.c
src/shared/tpm2-util.h
src/tpm2-setup/tpm2-setup.c