summaryrefslogtreecommitdiffstats
path: root/crypto/provider.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2021-06-18 10:08:23 +0100
committerMatt Caswell <matt@openssl.org>2021-06-24 14:48:14 +0100
commit8d4dec0d4b3055b4c2e7ece5ac99b67b3e77995e (patch)
tree2a7754474bd44bfb2352adc3b49b4f10ce6885f8 /crypto/provider.c
parentab7554e5a08966c159054ae7df18a879bfe3865f (diff)
Instantiate predefined providers just-in-time
Previously we instantiated all the predefined providers at the point that we create the provider store. Instead we move them to be instantiated as we need them. 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 'crypto/provider.c')
-rw-r--r--crypto/provider.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/crypto/provider.c b/crypto/provider.c
index 52647b2e77..60664e9e24 100644
--- a/crypto/provider.c
+++ b/crypto/provider.c
@@ -47,18 +47,6 @@ int OSSL_PROVIDER_unload(OSSL_PROVIDER *prov)
return 1;
}
-int OSSL_PROVIDER_available(OSSL_LIB_CTX *libctx, const char *name)
-{
- OSSL_PROVIDER *prov = NULL;
- int available = 0;
-
- /* Find it or create it */
- prov = ossl_provider_find(libctx, name, 0);
- available = ossl_provider_available(prov);
- ossl_provider_free(prov);
- return available;
-}
-
const OSSL_PARAM *OSSL_PROVIDER_gettable_params(const OSSL_PROVIDER *prov)
{
return ossl_provider_gettable_params(prov);