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