summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2019-04-05 10:47:05 +0100
committerMatt Caswell <matt@openssl.org>2019-04-09 10:24:43 +0100
commitd030892312a2e7076511205e7fe1a5eae98e5102 (patch)
treec1fbf493c6fed67af94fbf5384e88f5758c2ac59 /crypto
parentdc46e3dde58c781b5f29942d787a2c8765ba5514 (diff)
Add a legacy provider and put MD2 in it
Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/8541)
Diffstat (limited to 'crypto')
-rw-r--r--crypto/evp/digest.c1
-rw-r--r--crypto/property/property_parse.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/crypto/evp/digest.c b/crypto/evp/digest.c
index 1af8d82658..527c5d66b0 100644
--- a/crypto/evp/digest.c
+++ b/crypto/evp/digest.c
@@ -145,6 +145,7 @@ int EVP_DigestInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type, ENGINE *impl)
if (type->prov == NULL) {
switch(type->type) {
case NID_sha256:
+ case NID_md2:
break;
default:
goto legacy;
diff --git a/crypto/property/property_parse.c b/crypto/property/property_parse.c
index 074da51c6b..faaaee8fb2 100644
--- a/crypto/property/property_parse.c
+++ b/crypto/property/property_parse.c
@@ -523,6 +523,7 @@ int ossl_property_parse_init(void)
{
static const char *const predefined_names[] = {
"default", /* Being provided by the default built-in provider */
+ "legacy", /* Provided by the legacy provider */
"provider", /* Name of provider (default, fips) */
"version", /* Version number of this provider */
"fips", /* FIPS supporting provider */