1#	$OpenBSD: putty-kex.sh,v 1.2 2008/06/30 10:31:11 djm Exp $
2#	Placed in the Public Domain.
3
4tid="putty KEX"
5
6DATA=/bin/ls
7COPY=${OBJ}/copy
8
9if test "x$REGRESS_INTEROP_PUTTY" != "xyes" ; then
10	echo "putty interop tests not enabled"
11	exit 0
12fi
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
27