CVSROOT:        /cvs
Module name:    src
Changes by:     d...@cvs.openbsd.org    2018/10/08 23:42:23

Modified files:
        usr.bin/ssh    : sshkey.c 

Log message:
Treat all PEM_read_bio_PrivateKey() errors when a passphrase is specified
as "incorrect passphrase" instead of trying to choose between that and
"invalid format".

libcrypto can return ASN1 parsing errors rather than the expected
decrypt error in certain infrequent cases when trying to decrypt/parse
PEM private keys when supplied with an invalid passphrase.

Report and repro recipe from Thomas Deutschmann in bz#2901

ok markus@

Reply via email to