diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-10-24 23:14:23 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-10-25 09:29:20 +0200 |
commit | 4af7f27aeb670a80ca2c64967718958ed52870f6 (patch) | |
tree | c9dfb6cbafdb8e8d7b291a3ee47e43674c531937 /src | |
parent | tpm2-util: dont't find best PCR bank if no PCRs are selected whatsoever (diff) | |
download | systemd-4af7f27aeb670a80ca2c64967718958ed52870f6.tar.xz systemd-4af7f27aeb670a80ca2c64967718958ed52870f6.zip |
tpm2-util: add line breaks in compound struct init, like we usually do
Diffstat (limited to 'src')
-rw-r--r-- | src/shared/tpm2-util.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/shared/tpm2-util.c b/src/shared/tpm2-util.c index 4bb17157e2..70912930b8 100644 --- a/src/shared/tpm2-util.c +++ b/src/shared/tpm2-util.c @@ -1235,7 +1235,9 @@ int tpm2_get_or_create_srk( return 0; /* 0 → SRK already set up */ /* No SRK, create and persist one */ - TPM2B_PUBLIC template = { .size = sizeof(TPMT_PUBLIC), }; + TPM2B_PUBLIC template = { + .size = sizeof(TPMT_PUBLIC), + }; r = tpm2_get_best_srk_template(c, &template.publicArea); if (r < 0) return log_debug_errno(r, "Could not get best SRK template: %m"); @@ -2764,7 +2766,9 @@ int tpm2_digest_many( if (extend) sha256_process_bytes(digest->buffer, digest->size, &ctx); else { - *digest = (TPM2B_DIGEST){ .size = SHA256_DIGEST_SIZE, }; + *digest = (TPM2B_DIGEST) { + .size = SHA256_DIGEST_SIZE, + }; if (n_data == 0) /* If not extending and no data, return zero hash */ return 0; } @@ -4218,7 +4222,9 @@ int tpm2_unseal(Tpm2Context *c, if (r < 0) return r; } else if (primary_alg != 0) { - TPM2B_PUBLIC template = { .size = sizeof(TPMT_PUBLIC), }; + TPM2B_PUBLIC template = { + .size = sizeof(TPMT_PUBLIC), + }; r = tpm2_get_legacy_template(primary_alg, &template.publicArea); if (r < 0) return log_debug_errno(r, "Could not get legacy template: %m"); |