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.
This commit is contained in:
Lennart Poettering
2022-08-19 14:53:11 +02:00
parent 570fe6f12b
commit d1b2e04328
+1 -1
View 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.");