summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2021-06-21 09:23:30 +0100
committerMatt Caswell <matt@openssl.org>2021-06-24 14:48:14 +0100
commit29aff653150c363be2d84f789a10b46d99d5cab9 (patch)
treec6aba738ee2873756bbb32419173955171e71fce /include
parent352d482a2990cc04adff48aeda9c080d4a839f1e (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')
-rw-r--r--include/internal/provider.h1
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);