draft-ietf-secsh-transport-24 says that only "SSH-" at the start of a line
authorben <ben@cda61777-01e9-0310-a592-d414129be87e>
Sun, 24 Jul 2005 13:46:14 +0000 (13:46 +0000)
committerben <ben@cda61777-01e9-0310-a592-d414129be87e>
Sun, 24 Jul 2005 13:46:14 +0000 (13:46 +0000)
commit8c1835c0f951be43da1fb19405c7ff958a9b8661
tree3ae2a7a0bd853cea3f4876e4387d04a77ebcb8e7
parent422f05f34f64f5331a3870af3c62fa6be17c7d09
draft-ietf-secsh-transport-24 says that only "SSH-" at the start of a line
marks a version string.  It's a bit vague about the definition of a line,
but I think it's reasonable to assume that they'll end with LF.  Change
do_ssh_init() to ignore "SSH-" anywhere else.  This makes the existing state
machine overkill, so replace it with something a little more readable.

git-svn-id: svn://svn.tartarus.org/sgt/putty@6138 cda61777-01e9-0310-a592-d414129be87e
ssh.c