From: Antonio Alvarez Feijoo Date: Thu, 4 Apr 2024 15:44:52 +0000 (+0200) Subject: cryptsetup-tokens: fix argument order mismatch in function X-Git-Tag: v256-rc1~308 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce18410a54424dd247805a93ebfc515d875f999e;p=thirdparty%2Fsystemd.git 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 --- diff --git a/src/cryptsetup/cryptsetup-tokens/luks2-tpm2.h b/src/cryptsetup/cryptsetup-tokens/luks2-tpm2.h index 4900cd53628..c3a01dfb3e5 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,