]> git.ipfire.org Git - thirdparty/systemd.git/commit
tpm2: add Tpm2Handle with automatic cleanup 26180/head
authorDan Streetman <ddstreet@ieee.org>
Tue, 24 Jan 2023 15:19:03 +0000 (10:19 -0500)
committerDan Streetman <ddstreet@ieee.org>
Wed, 1 Feb 2023 17:52:08 +0000 (12:52 -0500)
commit16e16b8c7b1621f3db96bfc357e5bba727c9dded
tree4cc4f101caca8b9c2809197b74ba39dd9f605ed1
parent23e9ccc24ae0e7d3f3f609c69dbde171f1c55302
tpm2: add Tpm2Handle with automatic cleanup

This allows using _cleanup_ with the handles, which then allows removing the
use of goto in all functions that use the handles.
src/boot/measure.c
src/shared/tpm2-util.c
src/shared/tpm2-util.h