diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-08-19 11:32:07 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2022-08-19 14:53:11 +0200 |
commit | d1b2e0432897c125282af3d5b2baedcfdc8e49f5 (patch) | |
tree | 999dadb2dfda79a111f273ff8ec7677ff05268a0 /src/cryptsetup | |
parent | Drop the limit on number of inodes for /dev (diff) | |
download | systemd-d1b2e0432897c125282af3d5b2baedcfdc8e49f5.tar.xz systemd-d1b2e0432897c125282af3d5b2baedcfdc8e49f5.zip |
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.
Diffstat (limited to 'src/cryptsetup')
-rw-r--r-- | src/cryptsetup/cryptsetup.c | 2 |
1 files changed, 1 insertions, 1 deletions
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."); |