summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2020-04-08 04:02:34 +0200
committerPauli <paul.dale@oracle.com>2020-04-09 09:12:35 +0200
commit7b4344ac3e4d34c3086dfc46c92ebf73acfc390e (patch)
tree68fc5270785b18e93da758b462c12c800b6fbcf9 /crypto
parentMove legacy ciphers into the legacy provider (diff)
downloadopenssl-7b4344ac3e4d34c3086dfc46c92ebf73acfc390e.tar.xz
openssl-7b4344ac3e4d34c3086dfc46c92ebf73acfc390e.zip
Add a null provider which implements no algorithms.
By loading the null provider into the default context, it is possible to verify that it is not accidentally being used. Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/11488)
Diffstat (limited to 'crypto')
-rw-r--r--crypto/provider_predefined.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/provider_predefined.c b/crypto/provider_predefined.c
index e65f461008..fdf9a7e1ea 100644
--- a/crypto/provider_predefined.c
+++ b/crypto/provider_predefined.c
@@ -11,6 +11,7 @@
#include "provider_local.h"
OSSL_provider_init_fn ossl_default_provider_init;
+OSSL_provider_init_fn ossl_null_provider_init;
OSSL_provider_init_fn fips_intern_provider_init;
#ifdef STATIC_LEGACY
OSSL_provider_init_fn ossl_legacy_provider_init;
@@ -23,6 +24,7 @@ const struct predefined_providers_st predefined_providers[] = {
# ifdef STATIC_LEGACY
{ "legacy", ossl_legacy_provider_init, 0 },
# endif
+ { "null", ossl_null_provider_init, 0 },
#endif
{ NULL, NULL, 0 }
};