]> git.ipfire.org Git - thirdparty/systemd.git/commit
tpm2: use ref counter for Tpm2Context
authorDan Streetman <ddstreet@ieee.org>
Tue, 24 Jan 2023 00:52:56 +0000 (19:52 -0500)
committerDan Streetman <ddstreet@ieee.org>
Wed, 1 Feb 2023 17:51:17 +0000 (12:51 -0500)
commit68d084cee56e2686fb840106de20e267482183be
tree7d56e860be25458e9b4640baa57c45a2ef22275b
parentbd860983a6f884e37e88915f545d5520f92890ec
tpm2: use ref counter for Tpm2Context

This will be used by Tpm2Handle instances, which is added in later patches.

The refcounting allows the context to be retained until all Tpm2Handles have
been cleaned up, and the initial ref is released, before cleaning the context.
src/boot/measure.c
src/boot/pcrphase.c
src/cryptsetup/cryptsetup.c
src/shared/tpm2-util.c
src/shared/tpm2-util.h