]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
In openssh_read(), we shouldn't ever return SSH2_WRONG_PASSPHRASE for
authorSimon Tatham <anakin@pobox.com>
Thu, 30 Aug 2012 18:44:34 +0000 (18:44 +0000)
committerSimon Tatham <anakin@pobox.com>
Thu, 30 Aug 2012 18:44:34 +0000 (18:44 +0000)
commitdbc8ea8e353c06edb3287c02fa4901d1e026a836
tree49979b6fe43c53a8c4470fd18e4004e6c756d16e
parente2a48fe9b11975ebab421bdf222edea4ea239965
In openssh_read(), we shouldn't ever return SSH2_WRONG_PASSPHRASE for
an unencrypted key. (The other import function, sshcom_read(), already
got this right.) Thanks to David Wedderwille for the report.

This is more than just an error-reporting mistake; it actually causes
Windows PuTTYgen to tight-loop on attempting to load a corrupt OpenSSH
key, because the 'wrong passphrase' return value causes the caller to
loop round and try again, but of course it knows the key is
unencrypted so it doesn't prompt for a different passphrase and just
tries again with no change...

[originally from svn r9643]
import.c