summaryrefslogtreecommitdiffstats
path: root/crypto/provider_predefined.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2019-04-10 15:01:40 +0100
committerMatt Caswell <matt@openssl.org>2019-05-23 11:02:04 +0100
commit3593266d1c924ea595a1074e78381890f964392c (patch)
tree79a8cd84bb1413f1f692022d433d2fbfa1255bb9 /crypto/provider_predefined.c
parentecb0f148a94c9b0076240ca1d7904ab50a7dc9a4 (diff)
Make core code available within the FIPS module
Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/8728)
Diffstat (limited to 'crypto/provider_predefined.c')
-rw-r--r--crypto/provider_predefined.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/provider_predefined.c b/crypto/provider_predefined.c
index d14cd5b96e..d1423b1c6c 100644
--- a/crypto/provider_predefined.c
+++ b/crypto/provider_predefined.c
@@ -11,8 +11,13 @@
#include "provider_local.h"
OSSL_provider_init_fn ossl_default_provider_init;
+OSSL_provider_init_fn fips_intern_provider_init;
const struct predefined_providers_st predefined_providers[] = {
+#ifdef FIPS_MODE
+ { "fips", fips_intern_provider_init, 1 },
+#else
{ "default", ossl_default_provider_init, 1 },
+#endif
{ NULL, NULL, 0 }
};