- djm@cvs.openbsd.org 2010/01/13 01:40:16
[openssh-git.git] / regress / putty-kex.sh
blob293885a8a0ba6d39792ec01e44756a4cb4d03261
1 # $OpenBSD: putty-kex.sh,v 1.2 2008/06/30 10:31:11 djm Exp $
2 # Placed in the Public Domain.
4 tid="putty KEX"
6 DATA=/bin/ls
7 COPY=${OBJ}/copy
9 if test "x$REGRESS_INTEROP_PUTTY" != "xyes" ; then
10 echo "putty interop tests not enabled"
11 exit 0
14 for 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
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"
25 done