[Bug 2522] Key parser should reflect errors from OpenSSL

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Fri Apr 8 16:24:09 AEST 2016


https://bugzilla.mindrot.org/show_bug.cgi?id=2522

Damien Miller <djm at mindrot.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #2781|0                           |1
        is obsolete|                            |
                 CC|                            |djm at mindrot.org,
                   |                            |dtucker at zip.com.au
           Assignee|unassigned-bugs at mindrot.org |djm at mindrot.org
             Status|NEW                         |ASSIGNED
   Attachment #2806|                            |ok?(dtucker at zip.com.au)
              Flags|                            |

--- Comment #1 from Damien Miller <djm at mindrot.org> ---
Created attachment 2806
  --> https://bugzilla.mindrot.org/attachment.cgi?id=2806&action=edit
translate libcrypto error code on PEM_read_bio_PrivateKey failure

This patch translates a few more error codes, making that function
return either SSH_ERR_KEY_WRONG_PASSPHRASE, SSH_ERR_INVALID_FORMAT or
SSH_ERR_LIBCRYPTO_ERROR.

It also uses ERR_peek_last_error() which AFAIK is what we want.
ERR_peek_error() might be confused by prior soft libcrypto errors in
that process/thread's life.

-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list