]> andersk Git - gssapi-openssh.git/blame - openssh/regress/putty-ciphers.sh
Import of OpenSSH 5.2p1
[gssapi-openssh.git] / openssh / regress / putty-ciphers.sh
CommitLineData
91d9cdd3 1# $OpenBSD: putty-ciphers.sh,v 1.3 2008/11/10 02:06:35 djm Exp $
47686178 2# Placed in the Public Domain.
3
4tid="putty ciphers"
5
6DATA=/bin/ls
7COPY=${OBJ}/copy
8
47686178 9if test "x$REGRESS_INTEROP_PUTTY" != "xyes" ; then
91d9cdd3 10 echo "putty interop tests not enabled"
11 exit 0
47686178 12fi
13
91d9cdd3 14for c in aes blowfish 3des arcfour aes128-ctr aes192-ctr aes256-ctr ; do
47686178 15 verbose "$tid: cipher $c"
16 cp ${OBJ}/.putty/sessions/localhost_proxy \
17 ${OBJ}/.putty/sessions/cipher_$c
18 echo "Cipher=$c" >> ${OBJ}/.putty/sessions/cipher_$c
19
20 rm -f ${COPY}
21 env HOME=$PWD ${PLINK} -load cipher_$c -batch -i putty.rsa2 \
22 127.0.0.1 cat ${DATA} > ${COPY}
23 if [ $? -ne 0 ]; then
24 fail "ssh cat $DATA failed"
25 fi
26 cmp ${DATA} ${COPY} || fail "corrupted copy"
27done
28rm -f ${COPY}
29
This page took 0.232973 seconds and 5 git commands to generate.