]> asedeno.scripts.mit.edu Git - PuTTY.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)
commit99ecca53edf20e7190388a491bd1743457207cd5
treee331a9e751ae46d459ae53dfd680286756c280fb
parent3f20ec26a0b1695b287090e8da709df3962f4c21
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.

[originally from svn r5824]
ssh.c