xref: /freebsd/crypto/openssh/regress/proto-mismatch.sh (revision a25896ca1270e25b657ceaa8d47d5699515f5c25)
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