PEM: Add more library context aware PEM readers
authorRichard Levitte <levitte@openssl.org>
Tue, 18 Aug 2020 19:38:56 +0000 (21:38 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 20 Aug 2020 10:37:35 +0000 (12:37 +0200)
commit6e5ccd58c85f05f8d47a1682125a207dbc694768
tree505b0058ebf662bbd75ac103b35227175b9c0759
parent2274d22d39fd65b83c9c969cba86c8f03b3e0bec
PEM: Add more library context aware PEM readers

PEM_read_bio_PUBKEY_ex() and PEM_read_bio_Parameters_ex() are added to
complete PEM_read_bio_PrivateKey_ex().  They are all refactored to be
wrappers around the same internal function.

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12673)
crypto/pem/pem_all.c
crypto/pem/pem_pkey.c
doc/man3/PEM_read_bio_PrivateKey.pod
include/openssl/pem.h
util/libcrypto.num