From 332fd68347d460bc493899f2b299828eff2a231c Mon Sep 17 00:00:00 2001 From: toddouska Date: Thu, 28 Mar 2013 11:38:27 -0700 Subject: [PATCH] add lowmem to stacksize build --- configure.ac | 2 +- cyassl/ctaocrypt/settings.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index f358684e5..8b0600148 100644 --- a/configure.ac +++ b/configure.ac @@ -581,7 +581,7 @@ if test "$ENABLED_STACKSIZE" = "yes" then AC_CHECK_FUNC([posix_memalign], [], [AC_MSG_ERROR(stacksize needs posix_memalign)]) AC_CHECK_FUNC([pthread_attr_setstack], [], [AC_MSG_ERROR(stacksize needs pthread_attr_setstack)]) - AM_CFLAGS="$AM_CFLAGS -DHAVE_STACK_SIZE -DTFM_TIMING_RESISTANT" + AM_CFLAGS="$AM_CFLAGS -DHAVE_STACK_SIZE -DCYASSL_LOW_MEMORY" fi diff --git a/cyassl/ctaocrypt/settings.h b/cyassl/ctaocrypt/settings.h index 76462c182..ae05cd0c6 100644 --- a/cyassl/ctaocrypt/settings.h +++ b/cyassl/ctaocrypt/settings.h @@ -226,8 +226,11 @@ #endif #ifdef CYASSL_LOW_MEMORY + #undef RSA_LOW_MEM #define RSA_LOW_MEM + #undef CYASSL_SMALL_STACK #define CYASSL_SMALL_STACK + #undef TFM_TIMING_RESISTANT #define TFM_TIMING_RESISTANT #endif