<?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 — WolfSSL over lwIP netcon API]]></title>
		<link>https://www.wolfssl.com/forums/topic828-wolfssl-over-lwip-netcon-api.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic828.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in WolfSSL over lwIP netcon API.]]></description>
		<lastBuildDate>Wed, 27 Jul 2016 17:08:41 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: WolfSSL over lwIP netcon API]]></title>
			<link>https://www.wolfssl.com/forums/post2626.html#p2626</link>
			<description><![CDATA[<p>Oh there is also additional callbacks for setting a user defined ctx that wolfSSL passes around with the WOLFSSL struct when calling the user defined IO callbacks. This can be helpful if needing to keep a state attached to a connection. These functions can be found in wolfssl-root/src/io.c.</p><div class="codebox"><pre><code>wolfSSL_SetIOReadCtx(ssl, users-void-ptr);
wolfSSL_SetIOWriteCtx(ssl, users-void-ptr);</code></pre></div><p>&quot;users-void-ptr&quot; would then be passed from wolfSSL as the 4th argument to a user created IO callback function.</p><p>Regards,<br />Jacob</p>]]></description>
			<author><![CDATA[null@example.com (Jacob)]]></author>
			<pubDate>Wed, 27 Jul 2016 17:08:41 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post2626.html#p2626</guid>
		</item>
		<item>
			<title><![CDATA[Re: WolfSSL over lwIP netcon API]]></title>
			<link>https://www.wolfssl.com/forums/post2625.html#p2625</link>
			<description><![CDATA[<p>Hi dimax.main,</p><p>Missed the netcon part in the first post. No we do not have a default mapping to this API that is as easy as defining the WOLFSSL_LWIP macro, porting to the API would be as follows.</p><p>For porting to a system without making any changes to wolfSSL code I would recommend using the IO callbacks and defining WOLFSSL_USER_IO. The macro WOLFSSL_USER_IO removes header files and assumptions on IO calls, allowing the user to set their own IO operations. After creating a WOLFSSL_CTX structure in a users application the following functions would be needed to set what IO should be used.</p><div class="codebox"><pre><code>//user application code defining the functions user-io-recv-callback and user-io-send-callback

//user application created ctx with wolfSSL_CTX_new();

wolfSSL_SetIORecv(ctx, user-io-recv-callback);
wolfSSL_SetIOSend(ctx, user-io-send-callback);</code></pre></div><p>wolfSSL at this point is effectively encrypting/decrypting buffers and not worrying about how it is physically being sent or received. An example use of the IO callbacks can be found at <a href="https://github.com/wolfSSL/wolfssl-examples">https://github.com/wolfSSL/wolfssl-examples</a> in the file tls/server-callback.c.</p><p>Regards,<br />Jacob</p>]]></description>
			<author><![CDATA[null@example.com (Jacob)]]></author>
			<pubDate>Wed, 27 Jul 2016 16:58:14 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post2625.html#p2625</guid>
		</item>
		<item>
			<title><![CDATA[Re: WolfSSL over lwIP netcon API]]></title>
			<link>https://www.wolfssl.com/forums/post2624.html#p2624</link>
			<description><![CDATA[<p>Thanks.<br />But I afraid you have not fully understand my question. I did see that wolfSSL can run over lwIP stack. But lwIP provides two different APIs. One is Berkley socket like API and another is proprietary lwIP <strong>netcon API</strong>.&nbsp; My question was if <strong>netcon API</strong> is supported and if not where should I look at in wolfSSL to add a port for it.</p>]]></description>
			<author><![CDATA[null@example.com (dimax.main)]]></author>
			<pubDate>Wed, 27 Jul 2016 05:04:35 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post2624.html#p2624</guid>
		</item>
		<item>
			<title><![CDATA[Re: WolfSSL over lwIP netcon API]]></title>
			<link>https://www.wolfssl.com/forums/post2623.html#p2623</link>
			<description><![CDATA[<p>Hello dimax.main,</p><p>Thank you for contacting us here on the forums. Yes wolfSSL is set up to be able to use lwIP. In wolfssl/wolfcrypt/settings.h there is a macro flag for using it called &quot;WOLFSSL_LWIP&quot;, it&#039;s currently around line 70. For some more reading on it there is a previous case where Chris was helping port to an embedded device using lwIP here <a href="https://www.wolfssl.com/forums/topic275-porting-wolfssl-embedded-ssl-240-in-lwip-tcpip-stack.html.">https://www.wolfssl.com/forums/topic275 … tack.html.</a></p><p>Can you tell us some about the project being worked on?</p><p>Regards,<br />Jacob</p>]]></description>
			<author><![CDATA[null@example.com (Jacob)]]></author>
			<pubDate>Tue, 26 Jul 2016 22:24:21 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post2623.html#p2623</guid>
		</item>
		<item>
			<title><![CDATA[WolfSSL over lwIP netcon API]]></title>
			<link>https://www.wolfssl.com/forums/post2622.html#p2622</link>
			<description><![CDATA[<p>Hi,<br />Just want to ask if WolfSSL can run over lwIP netcon API and not BSD Socket API ?</p><p>Thanks.</p>]]></description>
			<author><![CDATA[null@example.com (dimax.main)]]></author>
			<pubDate>Fri, 22 Jul 2016 10:07:03 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post2622.html#p2622</guid>
		</item>
	</channel>
</rss>
