bcm4908: use upstream patches for Asus GT-AC5300 LEDs
[openwrt/staging/aparcar.git] / package / libs / wolfssl / patches / 101-update-sp_rand_prime-s-preprocessor-gating-to-match.patch
1 From dc92ec2aa9cb76b782bdba3fc5203267ebf39994 Mon Sep 17 00:00:00 2001
2 From: Kareem <kareem@wolfssl.com>
3 Date: Fri, 22 Jul 2022 11:07:46 -0700
4 Subject: [PATCH] Update sp_rand_prime's preprocessor gating to match
5 wolfSSL_BN_generate_prime_ex's.
6
7 ---
8 wolfcrypt/src/sp_int.c | 4 ++--
9 1 file changed, 2 insertions(+), 2 deletions(-)
10
11 --- a/wolfcrypt/src/sp_int.c
12 +++ b/wolfcrypt/src/sp_int.c
13 @@ -15647,8 +15647,8 @@ int sp_radix_size(sp_int* a, int radix,
14 * Prime number generation and checking.
15 ***************************************/
16
17 -#if defined(WOLFSSL_KEY_GEN) && (!defined(NO_DH) || !defined(NO_DSA)) && \
18 - !defined(WC_NO_RNG)
19 +#if defined(WOLFSSL_KEY_GEN) && (!defined(NO_RSA) || !defined(NO_DH) || \
20 + !defined(NO_DSA)) && !defined(WC_NO_RNG)
21 /* Generate a random prime for RSA only.
22 *
23 * @param [out] r SP integer to hold result.