mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
Other miscellaneous fixes
This commit is contained in:
@ -1726,7 +1726,8 @@ AC_ARG_ENABLE([error-queue-per-thread],
|
|||||||
|
|
||||||
if test "$ENABLED_ERRORQUEUEPERTHREAD" = "check"
|
if test "$ENABLED_ERRORQUEUEPERTHREAD" = "check"
|
||||||
then
|
then
|
||||||
AS_IF([test "$thread_ls_on" = "no"],
|
AS_IF([test "$thread_ls_on" = "no" ||
|
||||||
|
test "$ENABLED_SINGLETHREADED" = "yes"],
|
||||||
[ENABLED_ERRORQUEUEPERTHREAD=no],
|
[ENABLED_ERRORQUEUEPERTHREAD=no],
|
||||||
[ENABLED_ERRORQUEUEPERTHREAD=yes])
|
[ENABLED_ERRORQUEUEPERTHREAD=yes])
|
||||||
fi
|
fi
|
||||||
|
@ -1137,7 +1137,7 @@ WOLFSSL_OCSP_ONEREQ* wolfSSL_OCSP_request_add0_id(OcspRequest *req,
|
|||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (req->cid != NULL)
|
if (req->cid != NULL)
|
||||||
wolfSSL_OCSP_CERTID_free(req->cid);
|
wolfSSL_OCSP_CERTID_free((WOLFSSL_OCSP_CERTID*)req->cid);
|
||||||
/* Keep to free */
|
/* Keep to free */
|
||||||
req->cid = (void*)cid;
|
req->cid = (void*)cid;
|
||||||
|
|
||||||
|
@ -1447,7 +1447,8 @@ static int test_wolfSSL_CTX_load_verify_locations(void)
|
|||||||
/* Get cert cache size */
|
/* Get cert cache size */
|
||||||
ExpectIntGT(cacheSz = wolfSSL_CTX_get_cert_cache_memsize(ctx), 0);
|
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),
|
ExpectIntEQ(wolfSSL_CTX_memsave_cert_cache(NULL, NULL, -1, NULL),
|
||||||
BAD_FUNC_ARG);
|
BAD_FUNC_ARG);
|
||||||
|
Reference in New Issue
Block a user