Cross Reference: 205-allow-md5.patch
xref
: /
solaris-userland
/
components
/
openssl
/
openssl-fips-140
/
patches
/
205-allow-md5.patch
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
7101
N/A
# Allow MD5 in FIPS mode
7101
N/A
# Developed in house: not applicable to upstream
7101
N/A
---
a/crypto/evp/digest.c
2016-09-15 15:26:57.097982570 -0700
7101
N/A
+++
b/crypto/evp/digest.c
2016-09-15 15:29:22.781095415 -0700
7101
N/A
@@ -240,8 +240,13 @@
7101
N/A
return 1;
7101
N/A
#ifdef OPENSSL_FIPS
7101
N/A
if (FIPS_mode()) {
7101
N/A
- if (FIPS_digestinit(ctx, type))
7101
N/A
- return 1;
7101
N/A
+ if (type == EVP_md5()) {
7101
N/A
+ if (ctx->digest->init(ctx))
7101
N/A
+ return 1;
7101
N/A
+ } else {
7101
N/A
+ if (FIPS_digestinit(ctx, type))
7101
N/A
+ return 1;
7101
N/A
+ }
7101
N/A
OPENSSL_free(ctx->md_data);
7101
N/A
ctx->md_data = NULL;
7101
N/A
return 0;