]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/tpm2-util.c
tpm2-util: introduce tpm2_parse_pcr_argument() helper
authorLennart Poettering <lennart@poettering.net>
Wed, 17 Aug 2022 15:00:27 +0000 (17:00 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 19 Aug 2022 19:26:26 +0000 (21:26 +0200)
commit222a951fa4a625e2d7d9c2799d9873377029d1bf
treec9dab5810fa7f5f25b9b9a7a27fbc0cb384ef877
parent466266c1728e3b53b7020e4c0165c3e88576b805
tpm2-util: introduce tpm2_parse_pcr_argument() helper

Add a new tpm2_parse_pcr_argument() helper that unifies how we merge PCR
masks in a single function, we can use all over the place. Previously we
had basically the same code for this at 4 places.
src/creds/creds.c
src/cryptenroll/cryptenroll.c
src/cryptsetup/cryptsetup.c
src/partition/repart.c
src/shared/tpm2-util.c
src/shared/tpm2-util.h