From 0e735a7f53bfcf8ebfcd9c38def886d94affab76 Mon Sep 17 00:00:00 2001 From: dtucker Date: Sat, 8 Jan 2022 07:01:13 +0000 Subject: [PATCH] Enable all supported hostkey algorithms (but no others). Allows hostbased test to pass when built without OpenSSL. --- regress/usr.bin/ssh/hostbased.sh | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/regress/usr.bin/ssh/hostbased.sh b/regress/usr.bin/ssh/hostbased.sh index f62d6f5f1b9..470bce885cf 100644 --- a/regress/usr.bin/ssh/hostbased.sh +++ b/regress/usr.bin/ssh/hostbased.sh @@ -1,4 +1,4 @@ -# $OpenBSD: hostbased.sh,v 1.1 2022/01/06 21:46:56 dtucker Exp $ +# $OpenBSD: hostbased.sh,v 1.2 2022/01/08 07:01:13 dtucker Exp $ # Placed in the Public Domain. # This test requires external setup and thus is skipped unless @@ -18,20 +18,24 @@ elif [ -z "${SUDO}" ]; then skip "SUDO not set" fi +# Enable all supported hostkey algos (but no others) +hostkeyalgos=`${SSH} -Q HostKeyAlgorithms | tr '\n' , | sed 's/,$//'` + cat >>$OBJ/sshd_proxy <>$OBJ/ssh_proxy <