proto-mismatch.sh revision 98937
198937Sdes# $OpenBSD: proto-mismatch.sh,v 1.3 2002/03/15 13:08:56 markus Exp $ 298937Sdes# Placed in the Public Domain. 398937Sdes 498937Sdestid="protocol version mismatch" 598937Sdes 698937Sdesmismatch () 798937Sdes{ 898937Sdes server=$1 998937Sdes client=$2 1098937Sdes banner=`echo ${client} | ${SSHD} -o "Protocol=${server}" -i -f ${OBJ}/sshd_proxy` 1198937Sdes r=$? 1298937Sdes trace "sshd prints ${banner}" 1398937Sdes if [ $r -ne 255 ]; then 1498937Sdes fail "sshd prints ${banner} and accepts connect with version ${client}" 1598937Sdes fi 1698937Sdes} 1798937Sdes 1898937Sdesmismatch 2 SSH-1.5-HALLO 1998937Sdesmismatch 1 SSH-2.0-HALLO 20