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