]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
skip pkcs11 tests when built --without-openssl
authorDamien Miller <djm@mindrot.org>
Fri, 31 Oct 2025 01:19:47 +0000 (12:19 +1100)
committerDamien Miller <djm@mindrot.org>
Fri, 31 Oct 2025 01:19:47 +0000 (12:19 +1100)
regress/test-exec.sh

index 5b0c91f3faa9464b9484616532c54f79bfbb24be..b38908cee0867bb79c9965823ab727cdacf75985 100644 (file)
@@ -926,6 +926,9 @@ p11_find_lib() {
 PKCS11_OK=
 export PKCS11_OK
 p11_setup() {
+       # XXX we could potentially test ed25519 only in the absence of
+       # RSA and ECDSA support.
+       $SSH -Q key | grep ssh-rsa >/dev/null || return 1
        p11_find_lib \
                /usr/local/lib/softhsm/libsofthsm2.so \
                /usr/lib64/pkcs11/libsofthsm2.so \