proto-mismatch.sh revision 1.1
1tid="protocol version mismatch"
2
3mismatch ()
4{
5	server=$1
6	client=$2
7	banner=`echo ${client} | sshd -o "Protocol=${server}" -i -f ${OBJ}/sshd_proxy`
8	r=$?
9	trace "sshd prints ${banner}"
10	if [ $r -ne 255 ]; then
11		fail "sshd prints ${banner} and accepts connect with version ${client}"
12	fi
13}
14
15mismatch	2	SSH-1.5-HALLO
16mismatch	1	SSH-2.0-HALLO
17