blob: 71c09701b2c8e1fd003439d33a0f508dcb3c3eff [file] [log] [blame]
dtucker@openbsd.org79e48292016-11-25 03:02:01 +00001# $OpenBSD: putty-kex.sh,v 1.4 2016/11/25 03:02:01 dtucker Exp $
Damien Milleraf784932008-03-13 00:17:00 +11002# Placed in the Public Domain.
3
4tid="putty KEX"
5
Damien Milleraf784932008-03-13 00:17:00 +11006if test "x$REGRESS_INTEROP_PUTTY" != "xyes" ; then
Damien Miller3f94aaf2009-02-16 15:21:39 +11007 echo "putty interop tests not enabled"
8 exit 0
Damien Milleraf784932008-03-13 00:17:00 +11009fi
10
11for 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 Tuckerb5974de2018-03-23 13:21:14 +110017 env HOME=$PWD ${PLINK} -load kex_$k -batch -i ${OBJ}/putty.rsa2 true
Damien Milleraf784932008-03-13 00:17:00 +110018 if [ $? -ne 0 ]; then
19 fail "KEX $k failed"
20 fi
21done
22