Re-enable ssh-dss tests if ssh is compiled with DSA support
authordtucker <dtucker@openbsd.org>
Tue, 18 Jun 2024 08:11:48 +0000 (08:11 +0000)
committerdtucker <dtucker@openbsd.org>
Tue, 18 Jun 2024 08:11:48 +0000 (08:11 +0000)
regress/usr.bin/ssh/test-exec.sh

index e5f0254..e7c7bdb 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: test-exec.sh,v 1.116 2024/06/18 06:14:27 anton Exp $
+#      $OpenBSD: test-exec.sh,v 1.117 2024/06/18 08:11:48 dtucker Exp $
 #      Placed in the Public Domain.
 
 #SUDO=sudo
@@ -646,6 +646,10 @@ esac
 
 if test "$REGRESS_INTEROP_DROPBEAR" = "yes" ; then
        trace Create dropbear keys and add to authorized_keys
+       kt="rsa ecdsa ed25519"
+       if $SSH -Q key-plain | grep ssh-dss >/dev/null; then
+               kt="$kt dss"
+       fi
        mkdir -p $OBJ/.dropbear
        for i in rsa ecdsa ed25519; do
                if [ ! -f "$OBJ/.dropbear/id_$i" ]; then