summaryrefslogtreecommitdiffstats
path: root/providers/legacyprov.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2021-04-22 08:31:08 +0100
committerMatt Caswell <matt@openssl.org>2021-05-11 14:56:55 +0100
commitd0efad482f7d72db3d52bdb0380bd019e6d59de8 (patch)
tree63e975dab0a359bf058c62372c5f0ecc9235bf3b /providers/legacyprov.c
parentf12a5690de906c05031f0195b6dec6925ff27231 (diff)
Modify the legacy provider to use OSSL_LIB_CTX_new_child()
Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14991)
Diffstat (limited to 'providers/legacyprov.c')
-rw-r--r--providers/legacyprov.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/providers/legacyprov.c b/providers/legacyprov.c
index 852f6a4e91..1f137a721f 100644
--- a/providers/legacyprov.c
+++ b/providers/legacyprov.c
@@ -178,13 +178,8 @@ int OSSL_provider_init(const OSSL_CORE_HANDLE *handle,
{
OSSL_LIB_CTX *libctx = NULL;
- /*
- * We do not need to use any up-calls provided by libcrypto, so we ignore
- * the "in" dispatch table.
- */
-
if ((*provctx = ossl_prov_ctx_new()) == NULL
- || (libctx = OSSL_LIB_CTX_new()) == NULL) {
+ || (libctx = OSSL_LIB_CTX_new_child(handle, in)) == NULL) {
OSSL_LIB_CTX_free(libctx);
legacy_teardown(*provctx);
*provctx = NULL;