]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
draft-ietf-secsh-transport-24 says that only "SSH-" at the start of a line
authorBen Harris <bjh21@bjh21.me.uk>
Sun, 24 Jul 2005 13:46:14 +0000 (13:46 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Sun, 24 Jul 2005 13:46:14 +0000 (13:46 +0000)
commitae64be506fce3656d81ff416c0b77f75afc67c7c
tree3ae2a7a0bd853cea3f4876e4387d04a77ebcb8e7
parentd4a365000edc11c470dc296fb20461e818d4da3d
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.

[originally from svn r6138]
ssh.c