* <appro@fy.chalmers.se>
*/
+#include <openssl/crypto.h>
#include <openssl/fips.h>
#include <openssl/err.h>
static const unsigned char end[4]={0x80,0x00,0x00,0x00};
const unsigned char *cp=end;
-#ifdef FIPS
- if(FIPS_mode)
+#ifdef OPENSSL_FIPS
+ if(FIPS_mode() && !FIPS_md5_allowed())
{
FIPSerr(FIPS_F_HASH_FINAL,FIPS_R_NON_FIPS_METHOD);
return 0;