<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[wolfSSL - Embedded SSL Library — WolfSSH v1.4.13: Undefined Identifier "heap" error in internal.c]]></title>
		<link>https://www.wolfssl.com/forums/topic2065-wolfssh-v1413-undefined-identifier-heap-error-in-internalc.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic2065.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in WolfSSH v1.4.13: Undefined Identifier "heap" error in internal.c.]]></description>
		<lastBuildDate>Thu, 21 Dec 2023 17:25:08 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: WolfSSH v1.4.13: Undefined Identifier "heap" error in internal.c]]></title>
			<link>https://www.wolfssl.com/forums/post7391.html#p7391</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>Has anyone experienced a similar issue with the &quot;heap&quot; identifier in WolfSSH v1.4.13? If so, how was it resolved?</p></blockquote></div><p>We did when we added Zephyr support. We set it to the correct value. That particular case you indicated should be <em>ctx-&gt;heap</em>. If you aren&#039;t using a custom heap with your own memory allocator functions, you could use <em>NULL</em> for the heap.</p><div class="quotebox"><blockquote><p>Could this error be related to specific configurations or dependencies required for integrating WolfSSH with FreeRTOS and lwIP (e.g., WolfSSL/WolfCrypt)?</p></blockquote></div><p>It&#039;s happening in builds that aren&#039;t using the default memory allocators. For Linux/macOS/Windows, the <em>WMALLOC()</em> macro is ignoring the heap parameter. That&#039;s why I missed it.</p><div class="quotebox"><blockquote><p>Are there any particular user settings that should be verified or adjusted to resolve this issue?</p></blockquote></div><p>No.</p><div class="quotebox"><blockquote><p>Would upgrading or downgrading WolfSSH potentially solve this problem, or are there known workarounds for this version?</p></blockquote></div><p>This issue is fixed and will be available in the v1.4.15 release in the next few days.</p><p>--John</p>]]></description>
			<author><![CDATA[null@example.com (john)]]></author>
			<pubDate>Thu, 21 Dec 2023 17:25:08 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post7391.html#p7391</guid>
		</item>
		<item>
			<title><![CDATA[WolfSSH v1.4.13: Undefined Identifier "heap" error in internal.c]]></title>
			<link>https://www.wolfssl.com/forums/post7389.html#p7389</link>
			<description><![CDATA[<p>Experiencing an issue in WolfSSH version 1.4.13 when used with FreeRTOS and lwIP, and combined with the most recent version of wolfSSL. The compiler is indicating an &quot;undefined identifier &#039;heap&#039;&quot; error within the internal.c file.</p><p><strong>Error Details:</strong><br /></p><ul><li><p><strong>Error Message:</strong> #20 identifier &quot;heap&quot; is undefined</p></li><li><p><strong>Location in Code:</strong> internal.c Line 1052 (<a href="https://github.com/wolfSSL/wolfssh/blob/326a4bf004a6f4f19c8741ae10f24e1169e80f85/src/internal.c#L1052C37-L1052C58">GitHub Link</a>)</p></li><li><p><strong>WolfSSH Version:</strong> v1.4.13</p></li><li><p><strong>Additional Environment:</strong> FreeRTOS + lwIP, wolfSSL latest version</p></li></ul><p><strong>Questions:</strong><br /></p><ul><li><p>Has anyone experienced a similar issue with the &quot;heap&quot; identifier in WolfSSH v1.4.13? If so, how was it resolved?</p></li><li><p>Could this error be related to specific configurations or dependencies required for integrating WolfSSH with FreeRTOS and lwIP (e.g., WolfSSL/WolfCrypt)?</p></li><li><p>Are there any particular user settings that should be verified or adjusted to resolve this issue?</p></li><li><p>Would upgrading or downgrading WolfSSH potentially solve this problem, or are there known workarounds for this version?</p></li></ul><p><strong>user_settings.h File:</strong><br /></p><div class="codebox"><pre><code>#ifndef WOLFSSH_USER_SETTINGS_H
#define WOLFSSH_USER_SETTINGS_H
#ifdef __cplusplus
extern &quot;C&quot; {
#endif

#include &lt;wolfssl/wolfcrypt/types.h&gt;

#define FREERTOS
#define WOLFSSH_LWIP
#undef USE_WINDOWS_API
#define WOLFSSH_USE_AES_CBC
#define HAVE_ECC
#define HAVE_ECC_DHE
#define HAVE_ECDH
#define WOLFSSL_NO_WORD64_OPS
#define HAVE_ECC256
#define WOLFSSH_AES_CBC
#define WOLFSSH_AES_CTR
#define WOLFSSH_AES_GCM
#undef WOLFSSL_NUCLEUS
//#define WOLFSSH_SFTP
//#define WOLFSSH_SCP
#define NO_APITEST_MAIN_DRIVER
#define NO_TESTSUITE_MAIN_DRIVER
#define NO_UNITTEST_MAIN_DRIVER
#define NO_MAIN_DRIVER
#define WS_NO_SIGNAL
#define WS_USE_TEST_BUFFERS
#define NO_WOLFSSL_DIR
#define WOLFSSH_NO_NONBLOCKING
#define DEFAULT_WINDOW_SZ (128 * 128)
#define WOLFSSH_MAX_SFTP_RW 8192
//#define STATIC_BUFFER_LEN 160
#undef WOLFSSH_NO_ECDH_SHA2_NISTP256

#ifdef __cplusplus
}
#endif
#ifndef EPIPE
#define EPIPE           32  /* Broken pipe */
#endif
#ifndef EINTR
#define EINTR            4  /* Interrupted system call */
#endif
#ifndef EWOULDBLOCK
#define EWOULDBLOCK     EAGAIN  /* Operation would block */
#endif
#ifndef ECONNRESET
#define ECONNRESET     104  /* Connection reset by peer */
#endif
#ifndef EAGAIN
#define EAGAIN          11  /* Try again */
#endif
#ifndef ECONNABORTED
#define ECONNABORTED   103  /* Software caused connection abort */
#endif
#ifndef ECONNREFUSED
#define ECONNREFUSED   111  /* Connection refused */
#endif
#ifndef errno
extern int errno;
#endif

#endif /* WOLFSSH_USER_SETTINGS_H */</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (mugeno)]]></author>
			<pubDate>Thu, 21 Dec 2023 03:11:44 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post7389.html#p7389</guid>
		</item>
	</channel>
</rss>
