Commit 7c51bf84 authored by Niels Möller's avatar Niels Möller

New test, exercising the various -c

options.

Rev: src/testsuite/lsh-6-test:1.1
parent 7fd1abc9
#! /bin/sh
# Tests connecting with lsh. In order to use this, you must already
# have lsh set up so that you can login without password.
# This restriction can be fixed if we add an option to lshd to use a
# custom passwd-file.
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
if LSH_FLAGS="$OLD_FLAGS -c $c" exec_lsh "exit"; then
echo " Ok"
else
echo " Fail"; test_fail
fi
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment