Add locking for the provider_conf.c
authorMatt Caswell <matt@openssl.org>
Tue, 24 Aug 2021 16:41:39 +0000 (17:41 +0100)
committerPauli <pauli@openssl.org>
Thu, 26 Aug 2021 23:51:00 +0000 (09:51 +1000)
commitf38af1258561eb0213b344c607037a528136099f
tree2f7a3c8b6ba66fa571f82484ce3f8ac478a092f3
parent6f25d3c47995c6e4948212950566dfbe541904df
Add locking for the provider_conf.c

Avoid races where 2 threads attempt to configure activation of providers
at the same time. E.g. via an explicit and an implict load of the config
file at the same time.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16425)
crypto/provider_conf.c