diff options
author | Damien Miller <djm@mindrot.org> | 2008-03-12 14:17:00 +0100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2008-03-12 14:17:00 +0100 |
commit | af78493bba42cd4351eded064fb63b81fa2867a9 (patch) | |
tree | 0eca81431c4b72d3cc1a6f3119a95ad7ffa82fa8 /regress/putty-kex.sh | |
parent | - djm@cvs.openbsd.org 2007/12/12 05:04:03 (diff) | |
download | openssh-af78493bba42cd4351eded064fb63b81fa2867a9.tar.xz openssh-af78493bba42cd4351eded064fb63b81fa2867a9.zip |
- djm@cvs.openbsd.org 2007/12/21 04:13:53
[regress/Makefile regress/test-exec.sh regress/putty-ciphers.sh]
[regress/putty-kex.sh regress/putty-transfer.sh regress/ssh2putty.sh]
basic (crypto, kex and transfer) interop regression tests against putty
To run these, install putty and run "make interop-tests" from the build
directory - the tests aren't run by default yet.
Diffstat (limited to 'regress/putty-kex.sh')
-rw-r--r-- | regress/putty-kex.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/regress/putty-kex.sh b/regress/putty-kex.sh new file mode 100644 index 000000000..d0437c6d5 --- /dev/null +++ b/regress/putty-kex.sh @@ -0,0 +1,27 @@ +# $OpenBSD: putty-kex.sh,v 1.1 2007/12/21 04:13:53 djm Exp $ +# Placed in the Public Domain. + +tid="putty KEX" + +DATA=/bin/ls +COPY=${OBJ}/copy + +set -e + +if test "x$REGRESS_INTEROP_PUTTY" != "xyes" ; then + fatal "putty interop tests not enabled" +fi + +for k in dh-gex-sha1 dh-group1-sha1 dh-group14-sha1 ; do + verbose "$tid: kex $k" + cp ${OBJ}/.putty/sessions/localhost_proxy \ + ${OBJ}/.putty/sessions/kex_$k + echo "KEX=$k" >> ${OBJ}/.putty/sessions/kex_$k + + env HOME=$PWD ${PLINK} -load kex_$k -batch -i putty.rsa2 \ + 127.0.0.1 true + if [ $? -ne 0 ]; then + fail "KEX $k failed" + fi +done + |