lsh-6-test 534 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
#! /bin/sh

echo lsh, test 6, using various encryption algorithms

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

. $srcdir/functions.sh

OLD_FLAGS="$LSH_FLAGS"

13
ALGORITHMS="arcfour twofish blowfish 3des aes128-cbc aes128-ctr aes256-cbc aes256-ctr cast128 all"
14 15 16

LSHD_FLAGS="$LSHD_FLAGS -c all"

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

29
test_done