fix for --enable-opensslall --disable-sha224

This commit is contained in:
Takashi Kojo
2020-10-24 07:06:24 +09:00
parent 6265006553
commit 02536461e6

View File

@ -36035,9 +36035,12 @@ static int hash2mgf(enum wc_HashType hType)
return WC_MGF1SHA1;
#endif
#ifndef NO_SHA256
#ifdef WOLFSSL_SHA224
case WC_HASH_TYPE_SHA224:
#ifdef WOLFSSL_SHA224
return WC_MGF1SHA224;
#else
WOLFSSL_MSG("Unrecognized or unsupported hash function");
return WC_MGF1NONE;
#endif
case WC_HASH_TYPE_SHA256:
return WC_MGF1SHA256;