diff options
author | Richard Levitte <levitte@openssl.org> | 2016-12-06 14:41:33 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2017-06-29 19:25:39 +0200 |
commit | 4c17819c41b32f6652662d4a2942e35c67d7d650 (patch) | |
tree | 9529006887355c68d375bd061feb9a02a1acce4a /crypto/store/store_err.c | |
parent | 7852f588a651ee30256678a23a6162a3b2fb822f (diff) | |
download | openssl-4c17819c41b32f6652662d4a2942e35c67d7d650.zip openssl-4c17819c41b32f6652662d4a2942e35c67d7d650.tar.gz openssl-4c17819c41b32f6652662d4a2942e35c67d7d650.tar.bz2 |
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)
Diffstat (limited to 'crypto/store/store_err.c')
-rw-r--r-- | crypto/store/store_err.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/store/store_err.c b/crypto/store/store_err.c index 8f1a9be..aad643b 100644 --- a/crypto/store/store_err.c +++ b/crypto/store/store_err.c @@ -23,6 +23,10 @@ static const ERR_STRING_DATA OSSL_STORE_str_functs[] = { {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_FILE_NAME_TO_URI, 0), "file_name_to_uri"}, {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_FILE_OPEN, 0), "file_open"}, + {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_OSSL_STORE_ATTACH_PEM_BIO, 0), + "ossl_store_attach_pem_bio"}, + {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_OSSL_STORE_FILE_ATTACH_PEM_BIO_INT, 0), + "ossl_store_file_attach_pem_bio_int"}, {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_OSSL_STORE_GET0_LOADER_INT, 0), "ossl_store_get0_loader_int"}, {ERR_PACK(ERR_LIB_OSSL_STORE, OSSL_STORE_F_OSSL_STORE_INFO_GET1_CERT, 0), |