Do the same in the PuTTY tests since it's needed there and not exported
by test-exec.sh.
#!/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"
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"
-# $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`
# Tools used by multiple tests
NC=nc
-OPENSSL=openssl
+OPENSSL="${OPENSSL:-openssl}"
if [ "x$TEST_SSH_SSH" != "x" ]; then
SSH="${TEST_SSH_SSH}"