- (djm) [openbsd-compat/port-linux.c] Check whether SELinux is enabled
[openssh-git.git] / regress / putty-ciphers.sh
blob928ea60d262fd149568ca476aa039389f1c8ef2d
1 # $OpenBSD: putty-ciphers.sh,v 1.3 2008/11/10 02:06:35 djm Exp $
2 # Placed in the Public Domain.
4 tid="putty ciphers"
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 c in aes blowfish 3des arcfour aes128-ctr aes192-ctr aes256-ctr ; do
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
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"
26 cmp ${DATA} ${COPY} || fail "corrupted copy"
27 done
28 rm -f ${COPY}