From: Lennart Poettering Date: Fri, 19 Aug 2022 09:32:07 +0000 (+0200) Subject: cryptsetup: use right internal helper when checking whether to use tokens X-Git-Tag: v252-rc1~413 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1b2e0432897c125282af3d5b2baedcfdc8e49f5;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/cryptsetup/cryptsetup.c b/src/cryptsetup/cryptsetup.c index c8e71c43de5..2353e5c5eea 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.");