diff options
author | Ben Laurie <ben@openssl.org> | 2003-09-13 21:03:54 +0400 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2003-09-13 21:03:54 +0400 |
commit | c45c8f3f1c8ac86048fefae5470db6420e84c1fb (patch) | |
tree | db3376a886406ef3b4c51add2e6357d151bdb0bb /crypto | |
parent | b09c9a91cb275f5562699ef898ec28abc5fd461b (diff) |
Make TLSv1 work in FIPS mode.
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/md32_common.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/md32_common.h b/crypto/md32_common.h index 6d65c52fcd..46603a019d 100644 --- a/crypto/md32_common.h +++ b/crypto/md32_common.h @@ -130,6 +130,7 @@ #include <openssl/fips.h> #include <openssl/err.h> +#include "../fips/fips_locl.h" #if !defined(DATA_ORDER_IS_BIG_ENDIAN) && !defined(DATA_ORDER_IS_LITTLE_ENDIAN) #error "DATA_ORDER must be defined!" @@ -559,7 +560,7 @@ int HASH_FINAL (unsigned char *md, HASH_CTX *c) const unsigned char *cp=end; #ifdef FIPS - if(FIPS_mode) + if(FIPS_mode && !FIPS_md5_allowed) { FIPSerr(FIPS_F_HASH_FINAL,FIPS_R_NON_FIPS_METHOD); return 0; |