blob: 9d3c6a9f0e7b269a8b493a5ef49609e9de0d5807 [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
dtucker@openbsd.org79e48292016-11-25 03:02:01 +000017 env HOME=$PWD ${PLINK} -load kex_$k -batch -i putty.rsa2 true
Damien Milleraf784932008-03-13 00:17:00 +110018 if [ $? -ne 0 ]; then
19 fail "KEX $k failed"
20 fi
21done
22