From ce18410a54424dd247805a93ebfc515d875f999e Mon Sep 17 00:00:00 2001 From: Antonio Alvarez Feijoo Date: Thu, 4 Apr 2024 17:44:52 +0200 Subject: [PATCH] cryptsetup-tokens: fix argument order mismatch in function The order of the arguments of the function `acquire_luks2_key()` in `luks2-tpm2.h` is wrong, `pcrlock_path` and `pin` are swapped. Fixes 404aea7815595c1324947ed7f2a7502b17d3cc01 --- src/cryptsetup/cryptsetup-tokens/luks2-tpm2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cryptsetup/cryptsetup-tokens/luks2-tpm2.h b/src/cryptsetup/cryptsetup-tokens/luks2-tpm2.h index 4900cd5362..c3a01dfb3e 100644 --- a/src/cryptsetup/cryptsetup-tokens/luks2-tpm2.h +++ b/src/cryptsetup/cryptsetup-tokens/luks2-tpm2.h @@ -13,8 +13,8 @@ int acquire_luks2_key( const struct iovec *pubkey, uint32_t pubkey_pcr_mask, const char *signature_path, - const char *pcrlock_path, const char *pin, + const char *pcrlock_path, uint16_t primary_alg, const struct iovec *key_data, const struct iovec *policy_hash, -- 2.25.1