From f99f843f24caae612a2727bbe7511db2a38944da Mon Sep 17 00:00:00 2001 From: Vitaly Kuznetsov Date: Mon, 19 Jan 2026 13:42:34 +0100 Subject: [PATCH] tpm2-util: make tpm2_pcr_extend_bytes() declaration match its implementation tpm2_pcr_extend_bytes() has differences in parameter names between the declaration and the implementation, in particular, 'event' in the header is named 'event_type' in the implementation. --- src/shared/tpm2-util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/tpm2-util.h b/src/shared/tpm2-util.h index 1dc3326b30..6827719e86 100644 --- a/src/shared/tpm2-util.h +++ b/src/shared/tpm2-util.h @@ -151,7 +151,7 @@ typedef enum Tpm2UserspaceEventType { DECLARE_STRING_TABLE_LOOKUP(tpm2_userspace_event_type, Tpm2UserspaceEventType); -int tpm2_pcr_extend_bytes(Tpm2Context *c, char **banks, unsigned pcr_index, const struct iovec *data, const struct iovec *secret, Tpm2UserspaceEventType event, const char *description); +int tpm2_pcr_extend_bytes(Tpm2Context *c, char **banks, unsigned pcr_index, const struct iovec *data, const struct iovec *secret, Tpm2UserspaceEventType event_type, const char *description); int tpm2_nvpcr_get_index(const char *name, uint32_t *ret); int tpm2_nvpcr_extend_bytes(Tpm2Context *c, const Tpm2Handle *session, const char *name, const struct iovec *data, const struct iovec *secret, Tpm2UserspaceEventType event_type, const char *description); int tpm2_nvpcr_acquire_anchor_secret(struct iovec *ret, bool sync_secondary);