diff options
author | Matt Caswell <matt@openssl.org> | 2021-06-18 13:28:40 +0200 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2021-06-24 15:48:14 +0200 |
commit | 1d74203cf5d8542d349fbb2d5f35ad40994dec9f (patch) | |
tree | a3c4d976fc41d54db82922e19901dea3c237b4f5 /crypto/provider_local.h | |
parent | Instantiate predefined providers just-in-time (diff) | |
download | openssl-1d74203cf5d8542d349fbb2d5f35ad40994dec9f.tar.xz openssl-1d74203cf5d8542d349fbb2d5f35ad40994dec9f.zip |
Instantiate user-added builtin providers when we need them
Previously we created the provider object for builtin providers at the
point that OPENSSL_add_builtin() was called. Instead we delay that until
the provider is actually loaded.
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_local.h')
-rw-r--r-- | crypto/provider_local.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/provider_local.h b/crypto/provider_local.h index 12baf032f1..8ac692130f 100644 --- a/crypto/provider_local.h +++ b/crypto/provider_local.h @@ -9,10 +9,10 @@ #include <openssl/core.h> -struct predefined_providers_st { - const char *name; +struct provider_info_st { + char *name; OSSL_provider_init_fn *init; unsigned int is_fallback:1; }; -extern const struct predefined_providers_st ossl_predefined_providers[]; +extern const struct provider_info_st ossl_predefined_providers[]; |