xref: /freebsd/crypto/openssh/regress/putty-kex.sh (revision 7431dfd4580e850375fe5478d92ec770344db098)
1#	$OpenBSD: putty-kex.sh,v 1.3 2013/05/17 04:29:14 dtucker Exp $
2#	Placed in the Public Domain.
3
4tid="putty KEX"
5
6if test "x$REGRESS_INTEROP_PUTTY" != "xyes" ; then
7	echo "putty interop tests not enabled"
8	exit 0
9fi
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
17	env HOME=$PWD ${PLINK} -load kex_$k -batch -i putty.rsa2 \
18	    127.0.0.1 true
19	if [ $? -ne 0 ]; then
20		fail "KEX $k failed"
21	fi
22done
23
24