Replace misleading error message when loading PEM
authorTomas Mraz <tmraz@fedoraproject.org>
Mon, 11 May 2020 15:15:40 +0000 (17:15 +0200)
committerTomas Mraz <tmraz@fedoraproject.org>
Tue, 12 May 2020 17:25:14 +0000 (19:25 +0200)
commit3ee36aa18253108a4aac304adfa19707edf56d50
treecfee6bb22ead858f8d3c28970ffaadd95cdf6858
parent69296e264e58334620f541d09a4e381ee45542d4
Replace misleading error message when loading PEM

The error message "short header" when the end line
of PEM data cannot be identified is misleading.
Replace it with already existing "bad end line" error.

Fixes #8815

Reviewed-by: Ben Kaduk <kaduk@mit.edu>
(Merged from https://github.com/openssl/openssl/pull/11793)

(cherry picked from commit f523ca66612e6712f287aa4b4ed722a5f2d4d960)
crypto/pem/pem_lib.c