We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e9bdb7 commit 36c1d20Copy full SHA for 36c1d20
1 file changed
wolfssl/wolfcrypt/settings.h
@@ -2871,6 +2871,12 @@ extern void uITRON4_free(void *p) ;
2871
#error Small stack cannot be used with no malloc (WOLFSSL_NO_MALLOC)
2872
#endif
2873
2874
+/* If malloc is disabled make sure it is also disabled in SP math */
2875
+#if defined(WOLFSSL_NO_MALLOC) && !defined(WOLFSSL_SP_NO_MALLOC) && \
2876
+ (defined(WOLFSSL_SP_MATH) || defined(WOLFSSL_SP_MATH_ALL))
2877
+ #define WOLFSSL_SP_NO_MALLOC
2878
+#endif
2879
+
2880
/* Enable DH Extra for QT, openssl all, openssh and static ephemeral */
2881
/* Allows export/import of DH key and params as DER */
2882
#if !defined(NO_DH) && !defined(WOLFSSL_DH_EXTRA) && \
0 commit comments