Only load the config file into the default libctx if necessary
authorMatt Caswell <matt@openssl.org>
Thu, 22 Apr 2021 08:43:22 +0000 (09:43 +0100)
committerMatt Caswell <matt@openssl.org>
Tue, 11 May 2021 13:56:55 +0000 (14:56 +0100)
commitd07af736de592602f2831f8559d0302cb116e190
tree072afb6b562b793a9455e65078b15c2d25eef20e
parent56784203ec2e4c8d94fccb25b956e21331b800b1
Only load the config file into the default libctx if necessary

There is no need to load providers from the config file into the default
libctx, if the current libctx that we are using isn't the default libctx.
This avoids some deadlock situations.

Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14991)
crypto/provider_core.c