Correctly activate the provider in OSSL_PROVIDER_try_load
authorMatt Caswell <matt@openssl.org>
Tue, 9 Nov 2021 14:20:31 +0000 (14:20 +0000)
committerMatt Caswell <matt@openssl.org>
Fri, 12 Nov 2021 17:16:14 +0000 (17:16 +0000)
commit1e8ed3e596162d7490b26fb12e58af5208f52402
tree5fee239a6254e94dbb1a9442fbf4ff7d6da9e0fc
parentcad22202a32a94059e351d9819e6c9ed5c66605a
Correctly activate the provider in OSSL_PROVIDER_try_load

If during OSSL_PROVIDER_try_load() we attempt to load a provider, but
adding to the store gives back a different provider, then we need to
ensure this different provider has its activation count increased.

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