]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
When loading SSH-2 key, ignore passphrase argument if key is unencrypted.
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Tue, 2 Sep 2003 19:00:17 +0000 (19:00 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
Tue, 2 Sep 2003 19:00:17 +0000 (19:00 +0000)
commit15ac9c09ebe6bbf529ebbcf73a487ca50b654954
treeb79c55967ccb55ebc3135db9590593eb1396bf99
parentf6835045f878fc1dc87537705d28b590dbb76186
When loading SSH-2 key, ignore passphrase argument if key is unencrypted.
This should get rid of a problem that three or four people reported where
PuTTY intermittently reports "Unable to load private key" (MAC failed).

(ssh.c:do_ssh2_authconn() should also initialise its passphrase so it's not
passing garbage passphrases around, of course, but I haven't yet worked out
where the best place in the auth loop to do that would be.)

[originally from svn r3439]
sshpubk.c