]> git.ipfire.org Git - thirdparty/openssl.git/commit
Don't attempt to deactive child providers if we don't need to
authorMatt Caswell <matt@openssl.org>
Fri, 5 Nov 2021 13:42:40 +0000 (13:42 +0000)
committerMatt Caswell <matt@openssl.org>
Fri, 12 Nov 2021 17:16:14 +0000 (17:16 +0000)
commitc59fc87b338880893286934f02c446854f5baabf
tree81f9329b87f63d8806e4faea3826e4c644180272
parent6de9214a5062e9d015c84cbbab681184e16fccaa
Don't attempt to deactive child providers if we don't need to

If a provider doesn't have any child providers then there is no need
to attempt to remove them - so we should not do so. This removes some
potentialy thread races.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16980)
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