]> asedeno.scripts.mit.edu Git - PuTTY_svn.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)
commite16ae33b8376a2b430cbce483d4cea52e48c31a3
treeb79c55967ccb55ebc3135db9590593eb1396bf99
parent887b7ca08fb8d887f06ab1455399a262f79ddb79
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.)

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