summaryrefslogtreecommitdiffstats
path: root/crypto/provider_predefined.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2019-08-19 08:55:53 +0200
committerRichard Levitte <levitte@openssl.org>2019-09-26 22:41:47 +0200
commit318e074e1f55c556d0ab4f9e3fbdca7c9b284847 (patch)
tree81f256ac53a6438e82cf54535e2cafacd00aab1b /crypto/provider_predefined.c
parent03f30c552a07eb7686a9fc099b06653548afa941 (diff)
When building of modules is disabled, build the legacy provider into libcrypto
This makes the legacy provider available regardless of building conditions. Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/9637)
Diffstat (limited to 'crypto/provider_predefined.c')
-rw-r--r--crypto/provider_predefined.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/crypto/provider_predefined.c b/crypto/provider_predefined.c
index d1423b1c6c..e65f461008 100644
--- a/crypto/provider_predefined.c
+++ b/crypto/provider_predefined.c
@@ -12,12 +12,17 @@
OSSL_provider_init_fn ossl_default_provider_init;
OSSL_provider_init_fn fips_intern_provider_init;
-
+#ifdef STATIC_LEGACY
+OSSL_provider_init_fn ossl_legacy_provider_init;
+#endif
const struct predefined_providers_st predefined_providers[] = {
#ifdef FIPS_MODE
{ "fips", fips_intern_provider_init, 1 },
#else
{ "default", ossl_default_provider_init, 1 },
+# ifdef STATIC_LEGACY
+ { "legacy", ossl_legacy_provider_init, 0 },
+# endif
#endif
{ NULL, NULL, 0 }
};