define WOLFSSL_SMALL_STACK in tests and benchmark for ASYNC

This commit is contained in:
effbiae
2025-09-13 13:00:02 +10:00
parent 3921362250
commit 6bda10abd0
3 changed files with 11 additions and 0 deletions

View File

@@ -28,6 +28,10 @@
#include <wolfcrypt/src/misc.c>
#endif
#ifdef WOLFSSL_ASYNC_CRYPT
#define WOLFSSL_SMALL_STACK
#endif
#include <wolfssl/wolfcrypt/rsa.h>
#include <wolfssl/wolfcrypt/types.h>
#include <tests/api/api.h>

View File

@@ -69,6 +69,9 @@
/* Macro to disable benchmark */
#ifndef NO_CRYPT_BENCHMARK
#ifdef WOLFSSL_ASYNC_CRYPT
#define WOLFSSL_SMALL_STACK
#endif
#define WC_ALLOC_DO_ON_FAILURE() do { printf("out of memory at benchmark.c L %d\n", __LINE__); ret = MEMORY_E; goto exit; } while (0)
#include <wolfssl/wolfcrypt/types.h>

View File

@@ -43,6 +43,10 @@
#define WOLFSSL_DEBUG_TRACE_ERROR_CODES_ALWAYS
#endif
#ifdef WOLFSSL_ASYNC_CRYPT
#define WOLFSSL_SMALL_STACK
#endif
#if !defined(NO_CRYPT_TEST) || defined(WC_TEST_EXPORT_SUBTESTS)
#include <wolfssl/version.h>