]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
cryptsetup: use right internal helper when checking whether to use tokens
authorLennart Poettering <lennart@poettering.net>
Fri, 19 Aug 2022 09:32:07 +0000 (11:32 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 19 Aug 2022 12:53:11 +0000 (14:53 +0200)
The other codepaths get this right, the TPM2 one currently does not. Fix
that.

src/cryptsetup/cryptsetup.c

index c8e71c43de5c9cca0c851e45e2021d593341f8d5..2353e5c5eeacb9c8479d30d65f4a9413b696dc7e 100644 (file)
@@ -1285,7 +1285,7 @@ static int attach_luks2_by_tpm2_via_plugin(
                 .device = arg_tpm2_device
         };
 
-        if (!crypt_token_external_path())
+        if (!libcryptsetup_plugins_support())
                 return log_debug_errno(SYNTHETIC_ERRNO(EOPNOTSUPP),
                                        "Libcryptsetup has external plugins support disabled.");