summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIlias Apalodimas <[email protected]>2024-12-24 08:01:05 -0800
committerIlias Apalodimas <[email protected]>2025-01-07 15:45:51 +0200
commit0698f1331f286d4ed04bc2345de59acd86ee634e (patch)
tree387eeb709849f1a5be8255cab9048fc7299cbafb /include
parentdbe08c7b38f9bcb17c073cafc9ed8d3d2f398566 (diff)
tpm: Rename tpm2_allow_extend()
When that function was introduced we were only using it to check if extending a PCR was allowed, so the name made sense. A few patches ago we used that function to reason about the EventLog creation and general usage of PCRs , so let's rename it to something more generic that makes more sense in all contexts. Signed-off-by: Raymond Mao <[email protected]> Signed-off-by: Ilias Apalodimas <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/tpm-v2.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/tpm-v2.h b/include/tpm-v2.h
index 8c43f4fd9b5..87b2c614ad2 100644
--- a/include/tpm-v2.h
+++ b/include/tpm-v2.h
@@ -732,12 +732,13 @@ u16 tpm2_algorithm_to_len(enum tpm2_algorithms algo);
*/
/**
- * tpm2_allow_extend() - Check if extending PCRs is allowed and safe
+ * tpm2_check_active_banks() - Check if the active PCR banks are supported by
+ * our configuration
*
* @dev: TPM device
* Return: true if allowed
*/
-bool tpm2_allow_extend(struct udevice *dev);
+bool tpm2_check_active_banks(struct udevice *dev);
/**
* tpm2_is_active_bank() - check the pcr_select. If at least one of the PCRs