diff options
author | Matt Caswell <matt@openssl.org> | 2021-06-18 11:08:23 +0200 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2021-06-24 15:48:14 +0200 |
commit | 8d4dec0d4b3055b4c2e7ece5ac99b67b3e77995e (patch) | |
tree | 2a7754474bd44bfb2352adc3b49b4f10ce6885f8 /crypto/provider.c | |
parent | OSSL_DECODER_from_bio: Avoid spurious decoder error (diff) | |
download | openssl-8d4dec0d4b3055b4c2e7ece5ac99b67b3e77995e.tar.xz openssl-8d4dec0d4b3055b4c2e7ece5ac99b67b3e77995e.zip |
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.c | 12 |
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); |