Add the concept of a child OSSL_LIB_CTX
authorMatt Caswell <matt@openssl.org>
Wed, 21 Apr 2021 15:51:41 +0000 (16:51 +0100)
committerMatt Caswell <matt@openssl.org>
Tue, 11 May 2021 13:56:55 +0000 (14:56 +0100)
commitf12a5690de906c05031f0195b6dec6925ff27231
tree9d4ea21b4d574ec86091c27cd1c530356534c2df
parenta16d21744df686a7c005d1f129915d9083476e14
Add the concept of a child OSSL_LIB_CTX

Add a child OSSL_LIB_CTX that will mirror the providers loaded into the
parent libctx. This is useful for providers that want to use algorithms
from other providers and just need to inherit the providers used by the
application.

Fixes #14925

Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14991)
15 files changed:
crypto/build.info
crypto/context.c
crypto/provider.c
crypto/provider_child.c [new file with mode: 0644]
crypto/provider_core.c
doc/man3/OSSL_LIB_CTX.pod
include/internal/core.h
include/internal/cryptlib.h
include/internal/provider.h
include/openssl/core.h
include/openssl/core_dispatch.h
include/openssl/crypto.h.in
include/openssl/provider.h
test/bio_core_test.c
util/libcrypto.num