summaryrefslogtreecommitdiffstats
path: root/regress/test-exec.sh
diff options
context:
space:
mode:
authordtucker@openbsd.org <dtucker@openbsd.org>2020-04-05 01:04:41 +0200
committerDarren Tucker <dtucker@dtucker.net>2020-04-05 02:58:53 +0200
commitd1d5f728511e2338b7c994968d301d8723012264 (patch)
tree362b0adf4ce5c4edb4e66f9fbfbdb53bfaa73fd2 /regress/test-exec.sh
parentUse /usr/bin/xp4g/id if necessary. (diff)
downloadopenssh-d1d5f728511e2338b7c994968d301d8723012264.tar.xz
openssh-d1d5f728511e2338b7c994968d301d8723012264.zip
upstream: Indicate if we're using a cached key in trace output.
OpenBSD-Regress-ID: 409a7b0e59d1272890fda507651c0c3d2d3c0d89
Diffstat (limited to '')
-rw-r--r--regress/test-exec.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/regress/test-exec.sh b/regress/test-exec.sh
index f5e3ee6f5..62f5dfc46 100644
--- a/regress/test-exec.sh
+++ b/regress/test-exec.sh
@@ -1,4 +1,4 @@
-# $OpenBSD: test-exec.sh,v 1.75 2020/01/31 23:25:08 djm Exp $
+# $OpenBSD: test-exec.sh,v 1.76 2020/04/04 23:04:41 dtucker Exp $
# Placed in the Public Domain.
#SUDO=sudo
@@ -537,14 +537,16 @@ maybe_filter_sk() {
SSH_KEYTYPES=`$SSH -Q key-plain | maybe_filter_sk`
SSH_HOSTKEY_TYPES=`$SSH -Q key-plain | maybe_filter_sk`
-
+
for t in ${SSH_KEYTYPES}; do
# generate user key
- trace "generating key type $t"
if [ ! -f $OBJ/$t ] || [ ${SSHKEYGEN_BIN} -nt $OBJ/$t ]; then
+ trace "generating key type $t"
rm -f $OBJ/$t
${SSHKEYGEN} -q -N '' -t $t -f $OBJ/$t ||\
fail "ssh-keygen for $t failed"
+ else
+ trace "using cached key type $t"
fi
# setup authorized keys