xref: /freebsd/crypto/openssh/regress/proto-mismatch.sh (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1#	$OpenBSD: proto-mismatch.sh,v 1.5 2017/04/30 23:34:55 djm Exp $
2#	Placed in the Public Domain.
3
4tid="protocol version mismatch"
5
6mismatch ()
7{
8	client=$2
9	banner=`echo ${client} | ${SSHD} -i -f ${OBJ}/sshd_proxy`
10	r=$?
11	trace "sshd prints ${banner}"
12	if [ $r -ne 255 ]; then
13		fail "sshd prints ${banner} but accepts version ${client}"
14	fi
15}
16
17mismatch	SSH-1.5-HALLO
18