xref: /freebsd/crypto/openssh/regress/putty-kex.sh (revision 7c1b51d6dc2e165ae7333373513b080f17cf79bd)
1#	$OpenBSD: putty-kex.sh,v 1.4 2016/11/25 03:02:01 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 true
18	if [ $? -ne 0 ]; then
19		fail "KEX $k failed"
20	fi
21done
22
23