From: Vitaly Kuznetsov Date: Mon, 19 Jan 2026 12:42:34 +0000 (+0100) Subject: tpm2-util: make tpm2_pcr_extend_bytes() declaration match its implementation X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f99f843f24caae612a2727bbe7511db2a38944da;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/shared/tpm2-util.h b/src/shared/tpm2-util.h index 1dc3326b300..6827719e865 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);