From d1b2e0432897c125282af3d5b2baedcfdc8e49f5 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 19 Aug 2022 11:32:07 +0200 Subject: [PATCH] cryptsetup: use right internal helper when checking whether to use tokens The other codepaths get this right, the TPM2 one currently does not. Fix that. --- src/cryptsetup/cryptsetup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cryptsetup/cryptsetup.c b/src/cryptsetup/cryptsetup.c index c8e71c43de..2353e5c5ee 100644 --- a/src/cryptsetup/cryptsetup.c +++ b/src/cryptsetup/cryptsetup.c @@ -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."); -- 2.25.1