Add support for child provider to up_ref/free their parent
authorMatt Caswell <matt@openssl.org>
Thu, 29 Apr 2021 15:37:42 +0000 (16:37 +0100)
committerMatt Caswell <matt@openssl.org>
Tue, 11 May 2021 13:59:43 +0000 (14:59 +0100)
commit8c627075656cf2709680eeb5aa1826f00db2e483
treee9c1e8ac25bf22bfefa28d3a5871b1a67ac16eda
parent3b85bcfa14988cb383d94e5dee16645ce1ad39ed
Add support for child provider to up_ref/free their parent

If the ref counts on a child provider change, then this needs to be
reflected in the parent so we add callbacks to do this.

Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14991)
crypto/evp/evp_fetch.c
crypto/provider.c
crypto/provider_child.c
crypto/provider_conf.c
crypto/provider_core.c
include/internal/cryptlib.h
include/internal/provider.h
include/openssl/core_dispatch.h
test/provider_internal_test.c