Other miscellaneous fixes

This commit is contained in:
Lealem Amedie 2023-07-11 09:24:27 -06:00
parent bcbeef7647
commit 1329543b62
3 changed files with 5 additions and 3 deletions

View File

@ -1726,7 +1726,8 @@ AC_ARG_ENABLE([error-queue-per-thread],
if test "$ENABLED_ERRORQUEUEPERTHREAD" = "check"
then
AS_IF([test "$thread_ls_on" = "no"],
AS_IF([test "$thread_ls_on" = "no" ||
test "$ENABLED_SINGLETHREADED" = "yes"],
[ENABLED_ERRORQUEUEPERTHREAD=no],
[ENABLED_ERRORQUEUEPERTHREAD=yes])
fi

View File

@ -1137,7 +1137,7 @@ WOLFSSL_OCSP_ONEREQ* wolfSSL_OCSP_request_add0_id(OcspRequest *req,
return NULL;
if (req->cid != NULL)
wolfSSL_OCSP_CERTID_free(req->cid);
wolfSSL_OCSP_CERTID_free((WOLFSSL_OCSP_CERTID*)req->cid);
/* Keep to free */
req->cid = (void*)cid;

View File

@ -1447,7 +1447,8 @@ static int test_wolfSSL_CTX_load_verify_locations(void)
/* Get cert cache size */
ExpectIntGT(cacheSz = wolfSSL_CTX_get_cert_cache_memsize(ctx), 0);
ExpectNotNull(cache = XMALLOC(cacheSz, NULL, DYNAMIC_TYPE_TMP_BUFFER));
ExpectNotNull(cache = (byte*)XMALLOC(cacheSz, NULL,
DYNAMIC_TYPE_TMP_BUFFER));
ExpectIntEQ(wolfSSL_CTX_memsave_cert_cache(NULL, NULL, -1, NULL),
BAD_FUNC_ARG);