mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-06 14:40:50 +02:00
src/ssl_load.c: fix -Wnull-dereference in wolfssl_ctx_set_tmp_dh() (detected by armel build);
.github/workflows/pq-all.yml: for the --enable-sp-math scenario, --disable-quic (QUIC unit tests fail on that combo); wolfcrypt/test/test.c: add WC_MAYBE_UNUSED to ecdsa_test_deterministic_k_rs(), to fix armel sp-math build.
This commit is contained in:
+7
-2
@@ -5685,9 +5685,14 @@ static int wolfssl_ctx_set_tmp_dh(WOLFSSL_CTX* ctx, unsigned char* p, int pSz,
|
||||
|
||||
WOLFSSL_ENTER("wolfSSL_CTX_SetTmpDH");
|
||||
|
||||
if ((ctx == NULL) || (p == NULL) || (g == NULL))
|
||||
ret = BAD_FUNC_ARG;
|
||||
|
||||
/* Check the size of the prime meets the requirements of the SSL context. */
|
||||
if (((word16)pSz < ctx->minDhKeySz) || ((word16)pSz > ctx->maxDhKeySz)) {
|
||||
ret = DH_KEY_SIZE_E;
|
||||
if (ret == 1) {
|
||||
if (((word16)pSz < ctx->minDhKeySz) || ((word16)pSz > ctx->maxDhKeySz)) {
|
||||
ret = DH_KEY_SIZE_E;
|
||||
}
|
||||
}
|
||||
|
||||
#if !defined(WOLFSSL_OLD_PRIME_CHECK) && !defined(HAVE_FIPS) && \
|
||||
|
||||
Reference in New Issue
Block a user