diff options
Diffstat (limited to 'regress/test-exec.sh')
-rw-r--r-- | regress/test-exec.sh | 26 |
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 |
131 | fi | 131 | fi |
132 | 132 | ||
133 | SSH_PROTOCOLS=2 | ||
134 | #SSH_PROTOCOLS=`$SSH -Q protocol-version` | ||
135 | if [ "x$TEST_SSH_PROTOCOLS" != "x" ]; then | ||
136 | SSH_PROTOCOLS="${TEST_SSH_PROTOCOLS}" | ||
137 | fi | ||
138 | |||
139 | # Path to sshd must be absolute for rexec | 133 | # Path to sshd must be absolute for rexec |
140 | case "$SSHD" in | 134 | case "$SSHD" in |
141 | /*) ;; | 135 | /*) ;; |
@@ -386,22 +380,11 @@ fatal () | |||
386 | exit $RESULT | 380 | exit $RESULT |
387 | } | 381 | } |
388 | 382 | ||
389 | ssh_version () | ||
390 | { | ||
391 | echo ${SSH_PROTOCOLS} | grep "$1" >/dev/null | ||
392 | } | ||
393 | |||
394 | RESULT=0 | 383 | RESULT=0 |
395 | PIDFILE=$OBJ/pidfile | 384 | PIDFILE=$OBJ/pidfile |
396 | 385 | ||
397 | trap fatal 3 2 | 386 | trap fatal 3 2 |
398 | 387 | ||
399 | if ssh_version 1; then | ||
400 | PROTO="2,1" | ||
401 | else | ||
402 | PROTO="2" | ||
403 | fi | ||
404 | |||
405 | # create server config | 388 | # create server config |
406 | cat << EOF > $OBJ/sshd_config | 389 | cat << EOF > $OBJ/sshd_config |
407 | StrictModes no | 390 | StrictModes no |
@@ -460,11 +443,8 @@ fi | |||
460 | 443 | ||
461 | rm -f $OBJ/known_hosts $OBJ/authorized_keys_$USER | 444 | rm -f $OBJ/known_hosts $OBJ/authorized_keys_$USER |
462 | 445 | ||
463 | if ssh_version 1; then | 446 | SSH_KEYTYPES="rsa ed25519" |
464 | SSH_KEYTYPES="rsa rsa1" | 447 | |
465 | else | ||
466 | SSH_KEYTYPES="rsa ed25519" | ||
467 | fi | ||
468 | trace "generate keys" | 448 | trace "generate keys" |
469 | for t in ${SSH_KEYTYPES}; do | 449 | for t in ${SSH_KEYTYPES}; do |
470 | # generate user key | 450 | # generate user key |