mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 02:37:28 +02:00
tests/api.c and wolfcrypt/benchmark/benchmark.c: fixes for building with HAVE_FFDHE_3072 and/or HAVE_FFDHE_4096 but without HAVE_FFDHE_2048.
This commit is contained in:
10
tests/api.c
10
tests/api.c
@ -99283,8 +99283,18 @@ static int test_dtls_frag_ch(void)
|
||||
WOLFSSL_SUCCESS);
|
||||
ExpectIntEQ(wolfSSL_UseKeyShare(ssl_c, WOLFSSL_ECC_SECP521R1),
|
||||
WOLFSSL_SUCCESS);
|
||||
#ifdef HAVE_FFDHE_2048
|
||||
ExpectIntEQ(wolfSSL_UseKeyShare(ssl_c, WOLFSSL_FFDHE_2048),
|
||||
WOLFSSL_SUCCESS);
|
||||
#endif
|
||||
#ifdef HAVE_FFDHE_3072
|
||||
ExpectIntEQ(wolfSSL_UseKeyShare(ssl_c, WOLFSSL_FFDHE_3072),
|
||||
WOLFSSL_SUCCESS);
|
||||
#endif
|
||||
#ifdef HAVE_FFDHE_4096
|
||||
ExpectIntEQ(wolfSSL_UseKeyShare(ssl_c, WOLFSSL_FFDHE_4096),
|
||||
WOLFSSL_SUCCESS);
|
||||
#endif
|
||||
|
||||
ExpectIntEQ(wolfSSL_dtls13_allow_ch_frag(ssl_s, 1), WOLFSSL_SUCCESS);
|
||||
|
||||
|
@ -9460,7 +9460,8 @@ void bench_dh(int useDeviceID)
|
||||
ret = wc_DhKeyDecode(tmp, &idx, dhKey[i], (word32)bytes);
|
||||
#endif
|
||||
}
|
||||
#if defined(HAVE_FFDHE_2048) || defined(HAVE_FFDHE_3072)
|
||||
#if defined(HAVE_FFDHE_2048) || defined(HAVE_FFDHE_3072) || \
|
||||
defined(HAVE_FFDHE_4096)
|
||||
#ifdef HAVE_PUBLIC_FFDHE
|
||||
else if (params != NULL) {
|
||||
ret = wc_DhSetKey(dhKey[i], params->p, params->p_len,
|
||||
|
Reference in New Issue
Block a user