summaryrefslogtreecommitdiff
path: root/regress/test-exec.sh
diff options
context:
space:
mode:
Diffstat (limited to 'regress/test-exec.sh')
-rw-r--r--regress/test-exec.sh26
1 files changed, 3 insertions, 23 deletions
diff --git a/regress/test-exec.sh b/regress/test-exec.sh
index dc033cd96..1480f13fc 100644
--- a/regress/test-exec.sh
+++ b/regress/test-exec.sh
@@ -1,4 +1,4 @@
1# $OpenBSD: test-exec.sh,v 1.59 2017/02/07 23:03:11 dtucker Exp $ 1# $OpenBSD: test-exec.sh,v 1.60 2017/04/30 23:34:55 djm Exp $
2# Placed in the Public Domain. 2# Placed in the Public Domain.
3 3
4#SUDO=sudo 4#SUDO=sudo
@@ -130,12 +130,6 @@ if [ "x$TEST_SSH_CONCH" != "x" ]; then
130 esac 130 esac
131fi 131fi
132 132
133SSH_PROTOCOLS=2
134#SSH_PROTOCOLS=`$SSH -Q protocol-version`
135if [ "x$TEST_SSH_PROTOCOLS" != "x" ]; then
136 SSH_PROTOCOLS="${TEST_SSH_PROTOCOLS}"
137fi
138
139# Path to sshd must be absolute for rexec 133# Path to sshd must be absolute for rexec
140case "$SSHD" in 134case "$SSHD" in
141/*) ;; 135/*) ;;
@@ -386,22 +380,11 @@ fatal ()
386 exit $RESULT 380 exit $RESULT
387} 381}
388 382
389ssh_version ()
390{
391 echo ${SSH_PROTOCOLS} | grep "$1" >/dev/null
392}
393
394RESULT=0 383RESULT=0
395PIDFILE=$OBJ/pidfile 384PIDFILE=$OBJ/pidfile
396 385
397trap fatal 3 2 386trap fatal 3 2
398 387
399if ssh_version 1; then
400 PROTO="2,1"
401else
402 PROTO="2"
403fi
404
405# create server config 388# create server config
406cat << EOF > $OBJ/sshd_config 389cat << EOF > $OBJ/sshd_config
407 StrictModes no 390 StrictModes no
@@ -460,11 +443,8 @@ fi
460 443
461rm -f $OBJ/known_hosts $OBJ/authorized_keys_$USER 444rm -f $OBJ/known_hosts $OBJ/authorized_keys_$USER
462 445
463if ssh_version 1; then 446SSH_KEYTYPES="rsa ed25519"
464 SSH_KEYTYPES="rsa rsa1" 447
465else
466 SSH_KEYTYPES="rsa ed25519"
467fi
468trace "generate keys" 448trace "generate keys"
469for t in ${SSH_KEYTYPES}; do 449for t in ${SSH_KEYTYPES}; do
470 # generate user key 450 # generate user key