Remove some unnecessary OPENSSL_FIPS references
FIPS_mode() exists in all versions of OpenSSL but always returns 0 if OpenSSL is not FIPS capable. Reviewed-by: Tim Hudson <tjh@openssl.org>
This commit is contained in:
@@ -3599,10 +3599,8 @@ static const tls12_hash_info *tls12_get_hash_info(unsigned char hash_alg)
|
||||
const EVP_MD *tls12_get_hash(unsigned char hash_alg)
|
||||
{
|
||||
const tls12_hash_info *inf;
|
||||
#ifndef OPENSSL_FIPS
|
||||
if (hash_alg == TLSEXT_hash_md5 && FIPS_mode())
|
||||
return NULL;
|
||||
#endif
|
||||
inf = tls12_get_hash_info(hash_alg);
|
||||
if (!inf || !inf->mfunc)
|
||||
return NULL;
|
||||
|
Reference in New Issue
Block a user