]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tpm2: split TPM2_PCR_VALUE_MAKE() over multiple lines
authorDan Streetman <ddstreet@ieee.org>
Mon, 21 Aug 2023 21:42:39 +0000 (17:42 -0400)
committerDan Streetman <ddstreet@ieee.org>
Thu, 24 Aug 2023 16:33:26 +0000 (12:33 -0400)
src/shared/tpm2-util.h

index 9045934563c556077e0152e4ac9c72fd84cfa099..6883975174ae783c2d243b48f1b9d55753da5f1b 100644 (file)
@@ -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);