STORE: Move the built-in 'file:' loader to become an engine module
authorRichard Levitte <levitte@openssl.org>
Thu, 23 Jul 2020 14:56:59 +0000 (16:56 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 3 Sep 2020 15:48:32 +0000 (17:48 +0200)
commit16feca71544681cabf873fecd3f860f9853bdf07
treea1dce6397911d95de73f10208b65dbba04526ac6
parentbd7a6f16eb52c5c022b2555810efd99006db0a02
STORE: Move the built-in 'file:' loader to become an engine module

From this point on, this engine must be specifically specified.

To replace the internal EMBEDDED hack with something unique for the
new module, functions to create application specific OSSL_STORE_INFO
types were added.

Furthermore, the following function had to be exported:

ossl_do_blob_header()
ossl_do_PVK_header()
asn1_d2i_read_bio()

Finally, evp_pkcs82pkey_int() has become public under a new name,
EVP_PKCS82PKEY_with_libctx()

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/12587)
27 files changed:
Configurations/unix-Makefile.tmpl
crypto/asn1/a_d2i_fp.c
crypto/asn1/d2i_param.c
crypto/asn1/d2i_pr.c
crypto/evp/evp_pkey.c
crypto/store/build.info
crypto/store/store_init.c
crypto/store/store_lib.c
crypto/store/store_local.h
crypto/store/store_result.c
crypto/x509/x_all.c
doc/man3/OSSL_STORE_INFO.pod
engines/build.info
engines/e_loader_attic.c [moved from crypto/store/loader_file.c with 82% similarity]
engines/e_loader_attic.ec [new file with mode: 0644]
engines/e_loader_attic.txt [new file with mode: 0644]
engines/e_loader_attic_err.c [new file with mode: 0644]
engines/e_loader_attic_err.h [new file with mode: 0644]
include/crypto/asn1.h
include/crypto/evp.h
include/internal/asn1.h [new file with mode: 0644]
include/openssl/store.h
include/openssl/x509.h
providers/implementations/encode_decode/decode_common.c
util/libcrypto.num
util/missingcrypto-internal.txt
util/missingcrypto.txt