xref: /freebsd/crypto/openssh/regress/putty-kex.sh (revision f4b37ed0f8b307b1f3f0f630ca725d68f1dff30d)
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