From: Dan Streetman Date: Mon, 21 Aug 2023 21:42:39 +0000 (-0400) Subject: tpm2: split TPM2_PCR_VALUE_MAKE() over multiple lines X-Git-Tag: v255-rc1~630^2~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c6e5178220237fb10187c573a8ac4384993c0206;p=thirdparty%2Fsystemd.git tpm2: split TPM2_PCR_VALUE_MAKE() over multiple lines --- diff --git a/src/shared/tpm2-util.h b/src/shared/tpm2-util.h index 9045934563c..6883975174a 100644 --- a/src/shared/tpm2-util.h +++ b/src/shared/tpm2-util.h @@ -75,7 +75,13 @@ typedef struct { TPM2B_DIGEST value; } Tpm2PCRValue; -#define TPM2_PCR_VALUE_MAKE(i, h, v) (Tpm2PCRValue) { .index = (i), .hash = (h), .value = ((TPM2B_DIGEST) v), } +#define TPM2_PCR_VALUE_MAKE(i, h, v) \ + (Tpm2PCRValue) { \ + .index = (i), \ + .hash = (h), \ + .value = ((TPM2B_DIGEST) v), \ + } + bool tpm2_pcr_value_valid(const Tpm2PCRValue *pcr_value); int tpm2_pcr_value_from_string(const char *arg, Tpm2PCRValue *ret_pcr_value); char *tpm2_pcr_value_to_string(const Tpm2PCRValue *pcr_value);