In cases where we ask PEM_def_callback for minimum 0 length, accept 0 length
authorRichard Levitte <levitte@openssl.org>
Fri, 4 May 2018 12:19:44 +0000 (14:19 +0200)
committerRichard Levitte <levitte@openssl.org>
Sat, 12 May 2018 08:22:22 +0000 (10:22 +0200)
commit36d2517a97f6020049116492b4d5491d177e629c
tree5f718b37fa9e9e5d0027fbaa1baf2c7a53538d7a
parentf47bf4dab8c7b7063fbedff63ec8fe8cf8c3b15c
In cases where we ask PEM_def_callback for minimum 0 length, accept 0 length

Fixes #4716

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6173)

(cherry picked from commit c82c3462267afdbbaa53e11da0508ce4e03c02b3)
CHANGES
crypto/pem/pem_lib.c
crypto/pem/pem_pk8.c
crypto/pem/pem_pkey.c
crypto/pem/pvkfmt.c