1# $OpenBSD: putty-ciphers.sh,v 1.4 2013/05/17 04:29:14 dtucker Exp $ 2# Placed in the Public Domain. 3 4tid="putty ciphers" 5 6if test "x$REGRESS_INTEROP_PUTTY" != "xyes" ; then 7 fatal "putty interop tests not enabled" 8fi 9 10for c in aes blowfish 3des arcfour aes128-ctr aes192-ctr aes256-ctr ; do 11 verbose "$tid: cipher $c" 12 cp ${OBJ}/.putty/sessions/localhost_proxy \ 13 ${OBJ}/.putty/sessions/cipher_$c 14 echo "Cipher=$c" >> ${OBJ}/.putty/sessions/cipher_$c 15 16 rm -f ${COPY} 17 env HOME=$PWD ${PLINK} -load cipher_$c -batch -i putty.rsa2 \ 18 127.0.0.1 cat ${DATA} > ${COPY} 19 if [ $? -ne 0 ]; then 20 fail "ssh cat $DATA failed" 21 fi 22 cmp ${DATA} ${COPY} || fail "corrupted copy" 23done 24rm -f ${COPY} 25 26