<?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 — Feature Request: Add a free variable on the callback methods]]></title>
		<link>https://www.wolfssl.com/forums/topic394-feature-request-add-a-free-variable-on-the-callback-methods.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic394.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Feature Request: Add a free variable on the callback methods.]]></description>
		<lastBuildDate>Wed, 19 Jun 2013 07:08:04 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Feature Request: Add a free variable on the callback methods]]></title>
			<link>https://www.wolfssl.com/forums/post1213.html#p1213</link>
			<description><![CDATA[<p>Missed that! Thanks Chris!</p>]]></description>
			<author><![CDATA[null@example.com (Nitay)]]></author>
			<pubDate>Wed, 19 Jun 2013 07:08:04 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post1213.html#p1213</guid>
		</item>
		<item>
			<title><![CDATA[Re: Feature Request: Add a free variable on the callback methods]]></title>
			<link>https://www.wolfssl.com/forums/post1209.html#p1209</link>
			<description><![CDATA[<p>Hi Nitay,</p><p>wolfSSL embedded SSL does allow the user to set a context per WOLFSSL object.&nbsp; From Section 5.1.2 of the wolfSSL Manual:</p><div class="quotebox"><blockquote><p>The user can set a context per wolfSSL object (session) with wolfSSL_SetIOWriteCtx() and wolfSSL_SetIOReadCtx(), as demonstrated at the bottom of io.c.&nbsp; For example, if the user is using memory buffers, the context may be a pointer to a structure describing where and how to access the memory buffers.&nbsp; The default case, with no user overrides, registers the socket as the context.</p></blockquote></div><p>This context will then be passed to the I/O callbacks using the <strong>ctx</strong> parameter, where the I/O callbacks are prototyped by:</p><div class="codebox"><pre><code>/* I/O callbacks */                                                             
typedef int (*CallbackIORecv)(WOLFSSL *ssl, char *buf, int sz, void *ctx);       
typedef int (*CallbackIOSend)(WOLFSSL *ssl, char *buf, int sz, void *ctx);</code></pre></div><p>Best Regards,<br />Chris</p>]]></description>
			<author><![CDATA[null@example.com (chrisc)]]></author>
			<pubDate>Mon, 17 Jun 2013 15:51:00 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post1209.html#p1209</guid>
		</item>
		<item>
			<title><![CDATA[Feature Request: Add a free variable on the callback methods]]></title>
			<link>https://www.wolfssl.com/forums/post1201.html#p1201</link>
			<description><![CDATA[<p>Hello,</p><p>If I understand correctly, there isn&#039;t a way to pass a variable to the callback set by wolfSSL_SetIOSend / wolfSSL_SetIOReceive.</p><p>If possible, could you please add an extra parameter to the wolfSSL_SetIOSend / wolfSSL_SetIOReceive functions that will be passed to the callbacks?<br />It&#039;ll be easier to pass contexts, classes, etc...</p><p>Thanks<br />Nitay</p>]]></description>
			<author><![CDATA[null@example.com (Nitay)]]></author>
			<pubDate>Sun, 16 Jun 2013 19:11:59 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post1201.html#p1201</guid>
		</item>
	</channel>
</rss>
