7101N/A# Allow MD5 in FIPS mode
7101N/A# Developed in house: not applicable to upstream
7101N/A--- a/crypto/evp/digest.c 2016-09-15 15:26:57.097982570 -0700
7101N/A+++ b/crypto/evp/digest.c 2016-09-15 15:29:22.781095415 -0700
7101N/A@@ -240,8 +240,13 @@
7101N/A return 1;
7101N/A #ifdef OPENSSL_FIPS
7101N/A if (FIPS_mode()) {
7101N/A- if (FIPS_digestinit(ctx, type))
7101N/A- return 1;
7101N/A+ if (type == EVP_md5()) {
7101N/A+ if (ctx->digest->init(ctx))
7101N/A+ return 1;
7101N/A+ } else {
7101N/A+ if (FIPS_digestinit(ctx, type))
7101N/A+ return 1;
7101N/A+ }
7101N/A OPENSSL_free(ctx->md_data);
7101N/A ctx->md_data = NULL;
7101N/A return 0;