fundamental: rename tpm-pcr.h → tpm2-pcr.h

I always found it confusing that most of our TPM related definitions are
in tpm2-util.h, but the PCR names in tpm-pcr.h, without the "2". Let's
fix that and make this systematic, in particular as the definitions in
the file all start with TPM2_ already.

No code flow changes, just some renaming.
This commit is contained in:
Lennart Poettering
2023-08-24 13:40:37 +02:00
parent 46c5a1383a
commit e0e1f4f7a2
11 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -7,7 +7,7 @@
#include "path-util.h"
#include "stat-util.h"
#include "strv.h"
#include "tpm-pcr.h"
#include "tpm2-pcr.h"
#include "utf8.h"
#if ENABLE_EFI
+2 -2
View File
@@ -9,7 +9,7 @@
#include "macro.h"
#include "openssl-util.h"
#include "sha256.h"
#include "tpm-pcr.h"
#include "tpm2-pcr.h"
typedef enum TPM2Flags {
TPM2_FLAGS_USE_PIN = 1 << 0,
@@ -316,7 +316,7 @@ int tpm2_util_pbkdf2_hmac_sha256(const void *pass,
uint8_t res[static SHA256_DIGEST_SIZE]);
enum {
/* Additional defines for the PCR index naming enum from "fundamental/tpm-pcr.h" */
/* Additional defines for the PCR index naming enum from "fundamental/tpm2-pcr.h" */
_TPM2_PCR_INDEX_MAX_DEFINED = TPM2_PCRS_MAX,
_TPM2_PCR_INDEX_INVALID = -EINVAL,
};