[openssh-commits] [openssh] 01/01: upstream: select all RSA hostkey algorithms for UpdateHostkeys tests,
git+noreply at mindrot.org
git+noreply at mindrot.org
Wed Jan 5 19:31:43 AEDT 2022
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit 294c11b1c7d56d3fb61e329603a782315ed70c62
Author: djm at openbsd.org <djm at openbsd.org>
Date: Wed Jan 5 08:25:05 2022 +0000
upstream: select all RSA hostkey algorithms for UpdateHostkeys tests,
not just RSA-SHA1
OpenBSD-Regress-ID: b40e62b65863f2702a0c10aca583b2fe76772bd8
---
regress/hostkey-rotate.sh | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
diff --git a/regress/hostkey-rotate.sh b/regress/hostkey-rotate.sh
index 0ae0c3df..5898cbd8 100644
--- a/regress/hostkey-rotate.sh
+++ b/regress/hostkey-rotate.sh
@@ -1,4 +1,4 @@
-# $OpenBSD: hostkey-rotate.sh,v 1.9 2020/10/07 06:38:16 djm Exp $
+# $OpenBSD: hostkey-rotate.sh,v 1.10 2022/01/05 08:25:05 djm Exp $
# Placed in the Public Domain.
tid="hostkey rotate"
@@ -44,9 +44,14 @@ for k in $SSH_HOSTKEY_TYPES; do
echo "Hostkey $OBJ/hkr.${k}" >> $OBJ/sshd_proxy.orig
nkeys=`expr $nkeys + 1`
test "x$all_algs" = "x" || all_algs="${all_algs},"
- all_algs="${all_algs}$k"
case "$k" in
- ssh-rsa) secondary="ssh-rsa" ;;
+ ssh-rsa)
+ secondary="ssh-rsa"
+ all_algs="${all_algs}rsa-sha2-256,rsa-sha2-512,$k"
+ ;;
+ *)
+ all_algs="${all_algs}$k"
+ ;;
esac
done
@@ -92,8 +97,12 @@ done
# Check each key type
for k in $SSH_HOSTKEY_TYPES; do
+ case "$k" in
+ ssh-rsa) alg="rsa-sha2-256,rsa-sha2-512,ssh-rsa" ;;
+ *) alg="$k" ;;
+ esac
verbose "learn additional hostkeys, type=$k"
- dossh -oStrictHostKeyChecking=yes -oHostKeyAlgorithms=$k,$all_algs
+ dossh -oStrictHostKeyChecking=yes -oHostKeyAlgorithms=$alg,$all_algs
expect_nkeys $nkeys "learn hostkeys $k"
check_key_present $k || fail "didn't learn $k correctly"
done
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list