diff options
author | Matt Caswell <matt@openssl.org> | 2021-06-21 09:23:30 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2021-06-24 14:48:14 +0100 |
commit | 29aff653150c363be2d84f789a10b46d99d5cab9 (patch) | |
tree | c6aba738ee2873756bbb32419173955171e71fce /include/internal | |
parent | 352d482a2990cc04adff48aeda9c080d4a839f1e (diff) |
Add a new provider to the store only after we activate it
Rather than creating the provider, adding to the store and then activating
it, we do things the other way around, i.e. activate first and then add to
the store. This means that the activation should occur before other threads
are aware of the provider.
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15854)
Diffstat (limited to 'include/internal')
-rw-r--r-- | include/internal/provider.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/internal/provider.h b/include/internal/provider.h index 6432f8a212..127ea2d2c5 100644 --- a/include/internal/provider.h +++ b/include/internal/provider.h @@ -62,6 +62,7 @@ int ossl_provider_disable_fallback_loading(OSSL_LIB_CTX *libctx); int ossl_provider_activate(OSSL_PROVIDER *prov, int retain_fallbacks, int upcalls); int ossl_provider_deactivate(OSSL_PROVIDER *prov); +int ossl_provider_add_to_store(OSSL_PROVIDER *prov); /* Return pointer to the provider's context */ void *ossl_provider_ctx(const OSSL_PROVIDER *prov); |