diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-08-19 16:09:51 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2022-08-19 16:29:38 +0200 |
commit | 4436081e9d2fbc9cde7045472a22689b1c9dbb74 (patch) | |
tree | d8807985a8e332ae40690e38cab644f57bd5f5b1 /src/shared/tpm2-util.h | |
parent | 2ab1fb77e2e09baf7b34bf91604b995bb32ea5bf (diff) | |
download | systemd-4436081e9d2fbc9cde7045472a22689b1c9dbb74.tar.gz |
tpm2-util: split out helpers which format a PCR mask as a JSON array
This makes the code easier to read, and is something we can reuse later
on.
Diffstat (limited to 'src/shared/tpm2-util.h')
-rw-r--r-- | src/shared/tpm2-util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/tpm2-util.h b/src/shared/tpm2-util.h index ef19bed4f6..440d92e379 100644 --- a/src/shared/tpm2-util.h +++ b/src/shared/tpm2-util.h @@ -54,6 +54,7 @@ int tpm2_find_device_auto(int log_level, char **ret); int tpm2_parse_pcrs(const char *s, uint32_t *ret); +int tpm2_make_pcr_json_array(uint32_t pcr_mask, JsonVariant **ret); int tpm2_make_luks2_json(int keyslot, uint32_t pcr_mask, uint16_t pcr_bank, uint16_t primary_alg, const void *blob, size_t blob_size, const void *policy_hash, size_t policy_hash_size, TPM2Flags flags, JsonVariant **ret); #define TPM2_PCRS_MAX 24 |