]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tpm2-util: make tpm2_pcr_extend_bytes() declaration match its implementation
authorVitaly Kuznetsov <vkuznets@redhat.com>
Mon, 19 Jan 2026 12:42:34 +0000 (13:42 +0100)
committerVitaly Kuznetsov <vkuznets@redhat.com>
Mon, 19 Jan 2026 12:52:33 +0000 (13:52 +0100)
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

index 1dc3326b3001fc3cb593096c52e355faaf0948dd..6827719e865e52c6856f4fca90948b028a30e702 100644 (file)
@@ -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);