1 # $OpenBSD: putty-transfer.sh,v 1.3 2013/05/17 04:29:14 dtucker Exp $
2 # Placed in the Public Domain.
4 tid="putty transfer data"
6 if test "x$REGRESS_INTEROP_PUTTY" != "xyes" ; then
7 echo "putty interop tests not enabled"
11 # XXX support protocol 1 too
14 verbose "$tid: proto $p compression $c"
16 cp ${OBJ}/.putty/sessions/localhost_proxy \
17 ${OBJ}/.putty/sessions/compression_$c
18 echo "Compression=$c" >> ${OBJ}/.putty/sessions/kex_$k
19 env HOME=$PWD ${PLINK} -load compression_$c -batch \
20 -i putty.rsa$p 127.0.0.1 cat ${DATA} > ${COPY}
22 fail "ssh cat $DATA failed"
24 cmp ${DATA} ${COPY} || fail "corrupted copy"
26 for s in 10 100 1k 32k 64k 128k 256k; do
27 trace "proto $p compression $c dd-size ${s}"
29 dd if=$DATA obs=${s} 2> /dev/null | \
30 env HOME=$PWD ${PLINK} -load compression_$c \
31 -batch -i putty.rsa$p 127.0.0.1 \
34 fail "ssh cat $DATA failed"
36 cmp $DATA ${COPY} || fail "corrupted copy"