From 1c9bc1ca0eefe34f76ea0614d0049e30e65e6ff0 Mon Sep 17 00:00:00 2001 From: dtucker Date: Tue, 1 Jun 2021 23:56:20 +0000 Subject: [PATCH] Use a default value for $OPENSSL, allowing it to be overridden. Do the same in the PuTTY tests since it's needed there and not exported by test-exec.sh. --- regress/usr.bin/ssh/ssh2putty.sh | 4 +++- regress/usr.bin/ssh/test-exec.sh | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/regress/usr.bin/ssh/ssh2putty.sh b/regress/usr.bin/ssh/ssh2putty.sh index 321301bd49c..5b2d79546b0 100755 --- a/regress/usr.bin/ssh/ssh2putty.sh +++ b/regress/usr.bin/ssh/ssh2putty.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $OpenBSD: ssh2putty.sh,v 1.6 2021/05/24 10:25:18 dtucker Exp $ +# $OpenBSD: ssh2putty.sh,v 1.7 2021/06/01 23:56:20 dtucker Exp $ if test "x$1" = "x" -o "x$2" = "x" -o "x$3" = "x" ; then echo "Usage: ssh2putty hostname port ssh-private-key" @@ -10,6 +10,8 @@ HOST=$1 PORT=$2 KEYFILE=$3 +OPENSSL="${OPENSSL:-openssl}" + # XXX - support DSA keys too if ! grep -q "BEGIN RSA PRIVATE KEY" $KEYFILE ; then echo "Unsupported private key format" diff --git a/regress/usr.bin/ssh/test-exec.sh b/regress/usr.bin/ssh/test-exec.sh index cadf6dce283..d2f918e7ee0 100644 --- a/regress/usr.bin/ssh/test-exec.sh +++ b/regress/usr.bin/ssh/test-exec.sh @@ -1,4 +1,4 @@ -# $OpenBSD: test-exec.sh,v 1.80 2021/05/24 10:25:18 dtucker Exp $ +# $OpenBSD: test-exec.sh,v 1.81 2021/06/01 23:56:20 dtucker Exp $ # Placed in the Public Domain. USER=`id -un` @@ -60,7 +60,7 @@ CONCH=/usr/local/bin/conch # Tools used by multiple tests NC=nc -OPENSSL=openssl +OPENSSL="${OPENSSL:-openssl}" if [ "x$TEST_SSH_SSH" != "x" ]; then SSH="${TEST_SSH_SSH}" -- 2.20.1