summaryrefslogtreecommitdiffstats
path: root/src/creds
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-08-24 11:16:14 +0200
committerLennart Poettering <lennart@poettering.net>2023-08-24 13:40:37 +0200
commit2099cd6289981f51e9f8b4b9bf028eca36c9ad52 (patch)
tree9dac6bab7e73777dd844c9f1f53e3b89e286feaf /src/creds
parentMerge pull request #28946 from poettering/json-variant-append-arrayb (diff)
downloadsystemd-2099cd6289981f51e9f8b4b9bf028eca36c9ad52.tar.xz
systemd-2099cd6289981f51e9f8b4b9bf028eca36c9ad52.zip
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.
Diffstat (limited to 'src/creds')
-rw-r--r--src/creds/creds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/creds/creds.c b/src/creds/creds.c
index 36531d7d18..57f4aa6809 100644
--- a/src/creds/creds.c
+++ b/src/creds/creds.c
@@ -930,7 +930,7 @@ static int parse_argv(int argc, char *argv[]) {
if (arg_tpm2_pcr_mask == UINT32_MAX)
arg_tpm2_pcr_mask = TPM2_PCR_MASK_DEFAULT;
if (arg_tpm2_public_key_pcr_mask == UINT32_MAX)
- arg_tpm2_public_key_pcr_mask = UINT32_C(1) << TPM_PCR_INDEX_KERNEL_IMAGE;
+ arg_tpm2_public_key_pcr_mask = UINT32_C(1) << TPM2_PCR_KERNEL_BOOT;
return 1;
}