<?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 — Integrating wolfSSL to Embedded OS]]></title>
		<link>https://www.wolfssl.com/forums/topic2004-integrating-wolfssl-to-embedded-os.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic2004.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Integrating wolfSSL to Embedded OS.]]></description>
		<lastBuildDate>Thu, 20 Apr 2023 19:17:00 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Integrating wolfSSL to Embedded OS]]></title>
			<link>https://www.wolfssl.com/forums/post7100.html#p7100</link>
			<description><![CDATA[<p>Hi singhshikha,</p><p>We do rely on some system calls such as closesocket, htons etc.&nbsp; Please confirm you are linking in your standard library.&nbsp; If so, you will need to provide wolfSSL with your OS&#039; equivalent to these functions.&nbsp; We check if our function aliases such as CloseSocket have been defined, which allows you to override them by defining them in your user_settings.h:</p><div class="codebox"><pre><code>#define CloseSocket(s) YourCloseSocketFn(s)
#define XHTONS(a) YourHtoNsFn((a))
#define XINET_PTON(a,b,c)   YourInet_PtonFn((a),(b),(c))
#define DTLS_RECVFROM_FUNCTION YourRecvFromFn
#define DTLS_SENDTO_FUNCTION YourSendToFn</code></pre></div><p>If you don&#039;t have any of these functions, you&#039;ll need to define a wrapper function instead which provides equivalent functionality.<br />setsockopt, getpeername and getsockopt are currently called directly in our code and can&#039;t be overridden.<br />WSAGetLastError is coming from USE_WINDOWS_API, don&#039;t define this if you don&#039;t have Windows API support.</p><p>If you continue to run into issues, please reach out to us at support AT wolfssl DOT com with your user_settings.h.&nbsp; It would also be helpful to know what kind of system calls your OS has available.</p><p>I recommend upgrading to our latest release 5.6.0 when feasible for the best support and performance.</p><p>Thanks,<br />Kareem</p>]]></description>
			<author><![CDATA[null@example.com (kareem_wolfssl)]]></author>
			<pubDate>Thu, 20 Apr 2023 19:17:00 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post7100.html#p7100</guid>
		</item>
		<item>
			<title><![CDATA[Integrating wolfSSL to Embedded OS]]></title>
			<link>https://www.wolfssl.com/forums/post7099.html#p7099</link>
			<description><![CDATA[<p>Hi,</p><p>I am very new to wolfSSL and security in general. Currently I am trying to integrate version 5.5.4 of wolfSSL into proprietary 32 Bit Embedded OS. This is more of a feasibility check of wolfSSL compatibility with our OS before we move on to adopting it. I have tried integrating root wolfSSL directory and did all the basic configurations as needed. I have also enabled WOLFSSL_LWIP. Looks like there is no issue with the compilation but I am facing some linker errors. I do see the file inclusions happening as expected and not sure why this is happening. Can you help me undertstand what is going wrong over here? I will share the build log.</p><p>1&gt;ssl.obj : error LNK2019: unresolved external symbol __imp__closesocket@4 referenced in function _wolfSSL_BIO_free<br />1&gt;ssl.obj : error LNK2019: unresolved external symbol __imp__htons@4 referenced in function _wolfSSL_dtls_create_peer<br />1&gt;ssl.obj : error LNK2019: unresolved external symbol __imp__inet_pton@12 referenced in function _wolfSSL_dtls_create_peer<br />1&gt;wolfio.obj : error LNK2019: unresolved external symbol __imp__getpeername@12 referenced in function _EmbedGenerateCookie<br />1&gt;wolfio.obj : error LNK2019: unresolved external symbol __imp__getsockopt@20 referenced in function _isDGramSock<br />1&gt;wolfio.obj : error LNK2019: unresolved external symbol __imp__recvfrom@24 referenced in function _EmbedReceiveFrom<br />1&gt;wolfio.obj : error LNK2019: unresolved external symbol __imp__sendto@24 referenced in function _EmbedSendTo<br />1&gt;wolfio.obj : error LNK2019: unresolved external symbol __imp__setsockopt@20 referenced in function _EmbedReceiveFrom<br />1&gt;wolfio.obj : error LNK2019: unresolved external symbol __imp__WSAGetLastError@0 referenced in function _wolfSSL_LastError<br />1&gt;.\Builds\tc27x_Win32\TinyOs_Win32.exe : fatal error LNK1120: 9 unresolved externals</p><br /><p>Also will I be able to use your client /server example projects directly? What kind of modifications are expected to make it work with my proprietary OS? Any documents or guidance will be appreciated.</p>]]></description>
			<author><![CDATA[null@example.com (singhshikha)]]></author>
			<pubDate>Thu, 20 Apr 2023 05:42:03 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post7099.html#p7099</guid>
		</item>
	</channel>
</rss>
