lsh-6-test 476 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#! /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"

LSHD_FLAGS="$LSHD_FLAGS -c all"

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

test_success