dtucker@openbsd.org | 79e4829 | 2016-11-25 03:02:01 +0000 | [diff] [blame] | 1 | # $OpenBSD: putty-kex.sh,v 1.4 2016/11/25 03:02:01 dtucker 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 | |
Damien Miller | af78493 | 2008-03-13 00:17:00 +1100 | [diff] [blame] | 6 | if test "x$REGRESS_INTEROP_PUTTY" != "xyes" ; then |
Damien Miller | 3f94aaf | 2009-02-16 15:21:39 +1100 | [diff] [blame] | 7 | echo "putty interop tests not enabled" |
| 8 | exit 0 |
Damien Miller | af78493 | 2008-03-13 00:17:00 +1100 | [diff] [blame] | 9 | fi |
| 10 | |
| 11 | for k in dh-gex-sha1 dh-group1-sha1 dh-group14-sha1 ; do |
| 12 | verbose "$tid: kex $k" |
| 13 | cp ${OBJ}/.putty/sessions/localhost_proxy \ |
| 14 | ${OBJ}/.putty/sessions/kex_$k |
| 15 | echo "KEX=$k" >> ${OBJ}/.putty/sessions/kex_$k |
| 16 | |
Darren Tucker | b5974de | 2018-03-23 13:21:14 +1100 | [diff] [blame] | 17 | env HOME=$PWD ${PLINK} -load kex_$k -batch -i ${OBJ}/putty.rsa2 true |
Damien Miller | af78493 | 2008-03-13 00:17:00 +1100 | [diff] [blame] | 18 | if [ $? -ne 0 ]; then |
| 19 | fail "KEX $k failed" |
| 20 | fi |
| 21 | done |
| 22 | |