blob: 293885a8a0ba6d39792ec01e44756a4cb4d03261 [file] [log] [blame]
Darren Tucker5d6d70a2008-07-04 17:10:30 +10001# $OpenBSD: putty-kex.sh,v 1.2 2008/06/30 10:31:11 djm Exp $
Damien Milleraf784932008-03-13 00:17:00 +11002# Placed in the Public Domain.
3
4tid="putty KEX"
5
6DATA=/bin/ls
7COPY=${OBJ}/copy
8
Damien Milleraf784932008-03-13 00:17:00 +11009if test "x$REGRESS_INTEROP_PUTTY" != "xyes" ; then
Damien Miller3f94aaf2009-02-16 15:21:39 +110010 echo "putty interop tests not enabled"
11 exit 0
Damien Milleraf784932008-03-13 00:17:00 +110012fi
13
14for 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
25done
26