tpm2: unify symbolic name infra for PCRs
authorLennart Poettering <lennart@poettering.net>
Thu, 24 Aug 2023 09:16:14 +0000 (11:16 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 24 Aug 2023 11:40:37 +0000 (13:40 +0200)
commit2099cd6289981f51e9f8b4b9bf028eca36c9ad52
tree9dac6bab7e73777dd844c9f1f53e3b89e286feaf
parenta16e19c61d4e3ccfb853474220002d2c48dc33a1
tpm2: unify symbolic name infra for PCRs

We so far maintained two places for symboic names for PCRs. One in
tpm2-util.h and one in tpm-pcr.h.

Let's unify this into one, i.e. move the full list from tpm2-util.h into
tpm-pcr.h, replacing the short list placed so far there.

Systematically prefix the definitions with TPM2_ or tpm2_, to follow how
we do this for all other defines in this context.

No change in behaviour, just unification of tables.
14 files changed:
src/analyze/analyze-pcrs.c
src/boot/efi/measure.c
src/boot/efi/stub.c
src/boot/measure.c
src/boot/pcrphase.c
src/creds/creds.c
src/cryptenroll/cryptenroll.c
src/cryptsetup/cryptsetup.c
src/fundamental/tpm-pcr.h
src/partition/repart.c
src/shared/efi-loader.c
src/shared/tpm2-util.c
src/shared/tpm2-util.h
src/test/test-tpm2.c