build fix for --enable-afalg

This commit is contained in:
JacobBarthelmeh
2020-12-15 10:50:57 -07:00
parent c048ce5f99
commit e0b0c329b3
3 changed files with 6 additions and 4 deletions

View File

@@ -6924,7 +6924,8 @@ static int test_wc_Sha256FinalRaw (void)
{ {
int flag = 0; int flag = 0;
#if !defined(NO_SHA256) && !defined(HAVE_SELFTEST) && !defined(WOLFSSL_DEVCRYPTO) && (!defined(HAVE_FIPS) || \ #if !defined(NO_SHA256) && !defined(HAVE_SELFTEST) && !defined(WOLFSSL_DEVCRYPTO) && (!defined(HAVE_FIPS) || \
(defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION >= 3))) (defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION >= 3))) && \
!defined(WOLFSSL_NO_HASH_RAW)
wc_Sha256 sha256; wc_Sha256 sha256;
byte* hash_test[3]; byte* hash_test[3];
byte hash1[WC_SHA256_DIGEST_SIZE]; byte hash1[WC_SHA256_DIGEST_SIZE];

View File

@@ -528,7 +528,8 @@ struct WOLFSSL_X509_STORE {
#define WOLFSSL_NO_WILDCARDS 0x4 #define WOLFSSL_NO_WILDCARDS 0x4
#if defined(OPENSSL_ALL) || defined(WOLFSSL_IP_ALT_NAME) #if defined(OPENSSL_ALL) || defined(OPENSSL_EXTRA) || \
defined(WOLFSSL_WPAS_SMALL) || defined(WOLFSSL_IP_ALT_NAME)
#define WOLFSSL_MAX_IPSTR 46 /* max ip size IPv4 mapped IPv6 */ #define WOLFSSL_MAX_IPSTR 46 /* max ip size IPv4 mapped IPv6 */
#endif /* OPENSSL_ALL || WOLFSSL_IP_ALT_NAME */ #endif /* OPENSSL_ALL || WOLFSSL_IP_ALT_NAME */

View File

@@ -2290,8 +2290,8 @@ extern void uITRON4_free(void *p) ;
#define KEEP_PEER_CERT #define KEEP_PEER_CERT
#endif #endif
/* RAW hash function APIs are not implemented with ARMv8 hardware acceleration*/ /* RAW hash function APIs are not implemented */
#ifdef WOLFSSL_ARMASM #if defined(WOLFSSL_ARMASM) || defined(WOLFSSL_AFALG_HASH)
#undef WOLFSSL_NO_HASH_RAW #undef WOLFSSL_NO_HASH_RAW
#define WOLFSSL_NO_HASH_RAW #define WOLFSSL_NO_HASH_RAW
#endif #endif