Add internal functions to fetch PEM data from an opened BIO
authorRichard Levitte <levitte@openssl.org>
Tue, 6 Dec 2016 13:41:33 +0000 (14:41 +0100)
committerRichard Levitte <levitte@openssl.org>
Thu, 29 Jun 2017 17:25:39 +0000 (19:25 +0200)
commit4c17819c41b32f6652662d4a2942e35c67d7d650
tree9529006887355c68d375bd061feb9a02a1acce4a
parent7852f588a651ee30256678a23a6162a3b2fb822f
Add internal functions to fetch PEM data from an opened BIO

store_attach_pem_bio() creates a STORE_CTX with the 'file' scheme
loader backend in PEM reading mode on an already opened BIO.
store_detach_pem_bio() detaches the STORE_CTX from the BIO and
destroys it (without destroying the BIO).

These two functions can be used in place of STORE_open() and
STORE_close(), and are present as internal support for other OpenSSL
functions.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2745)
crypto/err/openssl.txt
crypto/include/internal/store_int.h [new file with mode: 0644]
crypto/store/loader_file.c
crypto/store/store_err.c
crypto/store/store_lib.c
crypto/store/store_locl.h
include/openssl/storeerr.h