Stop receiving child callbacks in a child libctx when appropriate
authorMatt Caswell <matt@openssl.org>
Tue, 9 Nov 2021 13:48:31 +0000 (13:48 +0000)
committerMatt Caswell <matt@openssl.org>
Fri, 12 Nov 2021 17:16:14 +0000 (17:16 +0000)
commitcad22202a32a94059e351d9819e6c9ed5c66605a
tree2e9ace55274f11f3c7b51e4bb04d325201495e5b
parente39bd6215123f375ddcfe92fa2b2550294da0b73
Stop receiving child callbacks in a child libctx when appropriate

We should stop receiving child callbacks if we're about to free up
the child libctx. Otherwise we can get callbacks when the libctx is half
freed up.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16980)
crypto/context.c
crypto/provider_child.c
doc/internal/man3/ossl_provider_new.pod
include/internal/provider.h