Add PEM_bytes_read_bio_secmem()
authorBenjamin Kaduk <bkaduk@akamai.com>
Mon, 29 Feb 2016 21:47:12 +0000 (15:47 -0600)
committerRichard Levitte <levitte@openssl.org>
Mon, 8 May 2017 19:20:31 +0000 (21:20 +0200)
commit7671342e550ed2de676b23c79d0e7f45a381c76e
treed474ef749646ba89f5001634955e229a0a60b580
parent204afd81b12c71d625e89599c0eef33588afc1f0
Add PEM_bytes_read_bio_secmem()

Split the PEM_bytes_read_bio() implementation out into a
pem_bytes_read_bio_flags() helper, to allow it to pass PEM_FLAG_SECURE
as needed.  Adjust the cleanup to properly use OPENSSL_secure_free()
when needed, and reimplement PEM_bytes_read() as a wrapper around
the _flags helper.

Add documentation for PEM_bytes_read_bio() and the new secmem variant.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1700)
crypto/pem/pem_lib.c
doc/man3/PEM_bytes_read_bio.pod [new file with mode: 0644]
include/openssl/pem.h
util/libcrypto.num