TEST-24-CRYPTSETUP: depend on OpenSSL for testing PKCS#11 tokens

This commit is contained in:
Vladimir Stoiakin 2024-01-06 16:59:56 +03:00 committed by Yu Watanabe
parent f569dc6af2
commit 9499741c0e

View file

@ -56,6 +56,10 @@ can_test_pkcs11() {
ddebug "Support for p11-kit is disabled, skipping the PKCS#11 test"
return 1
fi
if ! "${SYSTEMCTL:?}" --version | grep -q "+OPENSSL"; then
ddebug "Support for openssl is disabled, skipping the PKCS#11 test"
return 1
fi
if ! "${SYSTEMCTL:?}" --version | grep -q "+LIBCRYPTSETUP\b"; then
ddebug "Support for libcryptsetup is disabled, skipping the PKCS#11 test"
return 1