lsh-6-test 475 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#! /bin/sh

echo lsh, test 6, using various encryption algorithms

if [ -z "$srcdir" ] ; then
  srcdir=`pwd`
fi

. $srcdir/functions.sh

OLD_FLAGS="$LSH_FLAGS"

ALGORITHMS="arcfour twofish blowfish 3des aes rijndael cast128 all"

test_success

LSHD_FLAGS="$LSHD_FLAGS -c all"

spawn_lshd && for c in $ALGORITHMS ; do 
    echo Trying encryption flag $c
21
    if LSH_FLAGS="$OLD_FLAGS -c $c" exec_lsh "exit 0"; then
22 23 24 25 26
	echo "   Ok"
    else
	echo "   Fail"; test_fail
    fi
done