]> asedeno.scripts.mit.edu Git - PuTTY_svn.git/commit
Factor out all local SSH disconnections into a new function ssh_disconnect(),
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Sat, 21 May 2005 16:49:27 +0000 (16:49 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
Sat, 21 May 2005 16:49:27 +0000 (16:49 +0000)
commit51e5e13b0444fc9bd3c358147e7c6fe57919b9a8
treee331a9e751ae46d459ae53dfd680286756c280fb
parent91f1dd197bb9fb79cc942e43712fcc40d24bd7e8
Factor out all local SSH disconnections into a new function ssh_disconnect(),
and add the ability to treat a local disconnection as "unclean" -- notably, if
we can't agree any authentication methods to even try; someone was complaining
that the PuTTY window by default just disappears for no apparent reason in this
circumstance.

Also, use appropriate disconnect codes for those SSH2_MSG_DISCONNECT messages
that we do send.

I don't think I've seriously broken any user-visible behaviour, but the way
that connection-close distinctions are transmitted to the front-end is shaky
(or so it seems to me), so there may be non-ideal changes on some platforms.

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