summaryrefslogtreecommitdiff
path: root/src/cryptsetup/cryptsetup-tpm2.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2022-08-19 22:15:12 +0200
committerLennart Poettering <lennart@poettering.net>2022-09-08 16:34:27 +0200
commitfdf6c27cbaea5af63b474b6160c1effa5f3a3b46 (patch)
treeca1f8194933579d19c3b9b409b78b419ff150c1e /src/cryptsetup/cryptsetup-tpm2.h
parentdc63b2c90940c683a58195f43e59e1c08178629d (diff)
downloadsystemd-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.h8
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.");