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:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user