diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-08-19 22:15:12 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2022-09-08 16:34:27 +0200 |
commit | fdf6c27cbaea5af63b474b6160c1effa5f3a3b46 (patch) | |
tree | ca1f8194933579d19c3b9b409b78b419ff150c1e /src/cryptsetup/cryptsetup-tpm2.h | |
parent | dc63b2c90940c683a58195f43e59e1c08178629d (diff) | |
download | systemd-fdf6c27cbaea5af63b474b6160c1effa5f3a3b46.tar.gz |
tpm2-util: add common parser for the LUKS2 TPM2 JSON structure
This splits out the JSON parser used by the systemd-cryptsetup code.
This is preparation for later work to reuse it in the tpm2 cryptsetup
token module, which currently uses a separate but very similar parser
for the same data.
No change in behaviour.
Diffstat (limited to 'src/cryptsetup/cryptsetup-tpm2.h')
-rw-r--r-- | src/cryptsetup/cryptsetup-tpm2.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cryptsetup/cryptsetup-tpm2.h b/src/cryptsetup/cryptsetup-tpm2.h index b1bcf6de10..a34eb8443d 100644 --- a/src/cryptsetup/cryptsetup-tpm2.h +++ b/src/cryptsetup/cryptsetup-tpm2.h @@ -49,9 +49,9 @@ int find_tpm2_auto_data( size_t *ret_blob_size, void **ret_policy_hash, size_t *ret_policy_hash_size, + TPM2Flags *ret_flags, int *ret_keyslot, - int *ret_token, - TPM2Flags *ret_flags); + int *ret_token); #else @@ -97,9 +97,9 @@ static inline int find_tpm2_auto_data( size_t *ret_blob_size, void **ret_policy_hash, size_t *ret_policy_hash_size, + TPM2Flags *ret_flags, int *ret_keyslot, - int *ret_token, - TPM2Flags *ret_flags) { + int *ret_token) { return log_error_errno(SYNTHETIC_ERRNO(EOPNOTSUPP), "TPM2 support not available."); |