]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
cryptsetup-tokens: fix argument order mismatch in function
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Thu, 4 Apr 2024 15:44:52 +0000 (17:44 +0200)
committerMike Yuan <me@yhndnzj.com>
Thu, 4 Apr 2024 17:12:42 +0000 (01:12 +0800)
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

index 4900cd536284d7ec6f694ba70fea1d2c494ceae0..c3a01dfb3e54768f5d10b28faf2a70857201a005 100644 (file)
@@ -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,