Darren Tucker | 5d6d70a | 2008-07-04 17:10:30 +1000 | [diff] [blame] | 1 | # $OpenBSD: putty-kex.sh,v 1.2 2008/06/30 10:31:11 djm Exp $ |
Damien Miller | af78493 | 2008-03-13 00:17:00 +1100 | [diff] [blame] | 2 | # Placed in the Public Domain. |
| 3 | |
| 4 | tid="putty KEX" |
| 5 | |
| 6 | DATA=/bin/ls |
| 7 | COPY=${OBJ}/copy |
| 8 | |
Damien Miller | af78493 | 2008-03-13 00:17:00 +1100 | [diff] [blame] | 9 | if test "x$REGRESS_INTEROP_PUTTY" != "xyes" ; then |
Damien Miller | 3f94aaf | 2009-02-16 15:21:39 +1100 | [diff] [blame] | 10 | echo "putty interop tests not enabled" |
| 11 | exit 0 |
Damien Miller | af78493 | 2008-03-13 00:17:00 +1100 | [diff] [blame] | 12 | fi |
| 13 | |
| 14 | for k in dh-gex-sha1 dh-group1-sha1 dh-group14-sha1 ; do |
| 15 | verbose "$tid: kex $k" |
| 16 | cp ${OBJ}/.putty/sessions/localhost_proxy \ |
| 17 | ${OBJ}/.putty/sessions/kex_$k |
| 18 | echo "KEX=$k" >> ${OBJ}/.putty/sessions/kex_$k |
| 19 | |
| 20 | env HOME=$PWD ${PLINK} -load kex_$k -batch -i putty.rsa2 \ |
| 21 | 127.0.0.1 true |
| 22 | if [ $? -ne 0 ]; then |
| 23 | fail "KEX $k failed" |
| 24 | fi |
| 25 | done |
| 26 | |