Reworking of packet delivery to coroutines in SSH-2.
authorben <ben@cda61777-01e9-0310-a592-d414129be87e>
Tue, 21 Aug 2012 22:04:56 +0000 (22:04 +0000)
committerben <ben@cda61777-01e9-0310-a592-d414129be87e>
Tue, 21 Aug 2012 22:04:56 +0000 (22:04 +0000)
commitbc0741471148b6f7227e73367f0bdaba12e23804
treeb1a871b1229c59710867fb5fa8e0f53bcb8d4b96
parent9fb91415561170f9400840097d05b93350be522b
Reworking of packet delivery to coroutines in SSH-2.

Before, NULL in the dispatch table meant "send to the appropriate one of
do_ssh2_transport() and do_ssh2_authconn()".  Now those (via small
shims) are specified directly in the dispatch table, so ssh2_protocol()
is much simpler.

In the process, this has somewhat centralised the handling of gross
server protocol violations.  PuTTY will now disconnect with a rude
message when (e.g.) OpenSSH sends us an SSH_MSG_UNIMPLEMENTED when we
try to KEXINIT during authentication.

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