libs/wolfssl: disable hardening check in `settings.h`
[openwrt/staging/mkresin.git] / package / libs / wolfssl / patches / 100-disable-hardening-check.patch
1 diff --git a/wolfssl/wolfcrypt/settings.h b/wolfssl/wolfcrypt/settings.h
2 index 039c238..73537e0 100644
3 --- a/wolfssl/wolfcrypt/settings.h
4 +++ b/wolfssl/wolfcrypt/settings.h
5 @@ -1633,7 +1633,7 @@ extern void uITRON4_free(void *p) ;
6 #endif
7
8 /* warning for not using harden build options (default with ./configure) */
9 -#ifndef WC_NO_HARDEN
10 +#if 0
11 #if (defined(USE_FAST_MATH) && !defined(TFM_TIMING_RESISTANT)) || \
12 (defined(HAVE_ECC) && !defined(ECC_TIMING_RESISTANT)) || \
13 (!defined(NO_RSA) && !defined(WC_RSA_BLINDING) && !defined(HAVE_FIPS))