1 # $OpenBSD: putty-ciphers.sh,v 1.6 2017/05/08 01:52:49 djm Exp $
2 # Placed in the Public Domain.
6 if test "x$REGRESS_INTEROP_PUTTY" != "xyes" ; then
7 echo "putty interop tests not enabled"
11 for c in aes 3des 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
18 env HOME=$PWD ${PLINK} -load cipher_$c -batch -i putty.rsa2 \
21 fail "ssh cat $DATA failed"
23 cmp ${DATA} ${COPY} || fail "corrupted copy"