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