Fix wolfrand build failure, caused by defining NO_ASN without NO_CERTS.

This commit is contained in:
Kareem Abuobeid
2020-10-22 14:48:37 -07:00
parent 6265006553
commit 42583b5270

View File

@@ -3457,7 +3457,7 @@ static int hash_test(void)
if (ret != BAD_FUNC_ARG)
return -3392;
#ifndef NO_CERTS
#if !defined(NO_CERTS) && !defined(NO_ASN)
#if defined(WOLFSSL_MD2) && !defined(HAVE_SELFTEST)
ret = wc_GetCTC_HashOID(MD2);
if (ret == 0)