Set use_fallbacks to zero when we add a provider to the store
authorMatt Caswell <matt@openssl.org>
Mon, 21 Jun 2021 10:34:04 +0000 (11:34 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 24 Jun 2021 13:48:14 +0000 (14:48 +0100)
commiteb2263da9abf3676cbcac672eee8a26416a8c309
treedeaa7046d31cd09982f119e39ff4a20dbd047891
parentd5fbd5b4eda592fd43e8688f69f3bac4ca5dd2da
Set use_fallbacks to zero when we add a provider to the store

Update use_fallbacks to zero when we add a provider to the store rather
than when we activate it. Its only at the point that we add it to the store
that it is actually usable and visible to other threads.

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15854)
crypto/provider.c
crypto/provider_child.c
crypto/provider_conf.c
crypto/provider_core.c
doc/internal/man3/ossl_provider_new.pod
include/internal/provider.h
test/provider_internal_test.c