]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Modify the legacy provider to use OSSL_LIB_CTX_new_child()
authorMatt Caswell <matt@openssl.org>
Thu, 22 Apr 2021 07:31:08 +0000 (08:31 +0100)
committerMatt Caswell <matt@openssl.org>
Tue, 11 May 2021 13:56:55 +0000 (14:56 +0100)
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14991)

providers/legacyprov.c

index 852f6a4e913cbf823346612bf8acd8936ab145d9..1f137a721fac7fae554ed4de3a7f4942d7dbc5b2 100644 (file)
@@ -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;