summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2002-02-22 12:31:35 +0000
committermarkus <markus@openbsd.org>2002-02-22 12:31:35 +0000
commit95913b023224f306c97ec5c4a03e922cbab3dcbc (patch)
treefb965e0fb012c94b9c6cb2c0306a8ccf47f6b77f
parentoverwrite fatal() in ssh-keyscan.c; fixes pr 2354; ok provos@ (diff)
downloadwireguard-openbsd-95913b023224f306c97ec5c4a03e922cbab3dcbc.tar.xz
wireguard-openbsd-95913b023224f306c97ec5c4a03e922cbab3dcbc.zip
test keyscan as well (test for pr 2354)
-rw-r--r--regress/usr.bin/ssh/Makefile3
-rw-r--r--regress/usr.bin/ssh/keyscan.sh16
2 files changed, 18 insertions, 1 deletions
diff --git a/regress/usr.bin/ssh/Makefile b/regress/usr.bin/ssh/Makefile
index f2e9b4acfe5..c6726c34dd5 100644
--- a/regress/usr.bin/ssh/Makefile
+++ b/regress/usr.bin/ssh/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.4 2002/02/18 11:40:42 markus Exp $
+# $OpenBSD: Makefile,v 1.5 2002/02/22 12:31:35 markus Exp $
REGRESSTARGETS= t1 t2 t3 t4 t5 t6 t7
@@ -13,6 +13,7 @@ LTESTS= connect \
try-ciphers \
yes-head \
agent \
+ keyscan \
forwarding
USER!= id -un
diff --git a/regress/usr.bin/ssh/keyscan.sh b/regress/usr.bin/ssh/keyscan.sh
new file mode 100644
index 00000000000..c1bd82de23f
--- /dev/null
+++ b/regress/usr.bin/ssh/keyscan.sh
@@ -0,0 +1,16 @@
+# $OpenBSD: keyscan.sh,v 1.1 2002/02/22 12:31:35 markus Exp $
+# Placed in the Public Domain.
+
+tid="keyscan"
+
+start_sshd
+
+for t in rsa1 rsa dsa; do
+ trace "keyscan type $t"
+ ssh-keyscan -t $t -p $PORT 127.0.0.1 127.0.0.1 127.0.0.1 \
+ > /dev/null 2>&1
+ r=$?
+ if [ $r -ne 0 ]; then
+ fail "ssh-keyscan -t $t failed with: $r"
+ fi
+done