<?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 — [SOLVED] Undefined RSA functions from wolfssl.lib]]></title>
		<link>https://www.wolfssl.com/forums/topic1147-solved-undefined-rsa-functions-from-wolfssllib.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic1147.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in [SOLVED] Undefined RSA functions from wolfssl.lib.]]></description>
		<lastBuildDate>Tue, 05 Dec 2017 14:31:06 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] Undefined RSA functions from wolfssl.lib]]></title>
			<link>https://www.wolfssl.com/forums/post3717.html#p3717</link>
			<description><![CDATA[<p>Kaleb,</p><p>Thanks for the quick response. </p><p>Adding <em>user_settings.h</em> and removing <em>options.h</em> from my application fixed the compiler warnings.</p><p>I figured it out the linker errors, I had to ...<br /></p><div class="codebox"><pre><code>#define WOLFSSL_USER_IO</code></pre></div><p>in my user settings, removing the default auto settings for IO functions. I&#039;d assume by using these RSA functions, the application was looking for socket from <em>network.h</em> (from the macros RECV_FUNCTION and SEND_FUNCTION) for SSL/TLS usage.</p><p>Thanks for the great support Kaleb!</p><p>Best Regards,</p><p>Dylan</p>]]></description>
			<author><![CDATA[null@example.com (lalonde)]]></author>
			<pubDate>Tue, 05 Dec 2017 14:31:06 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post3717.html#p3717</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Undefined RSA functions from wolfssl.lib]]></title>
			<link>https://www.wolfssl.com/forums/post3714.html#p3714</link>
			<description><![CDATA[<p>Hi lalonde,</p><p>Since you are working in a windows environment I am surprised the include</p><div class="codebox"><pre><code>#include &lt;wolfssl/options.h&gt;</code></pre></div><p>is working properly! That is typically automatically generated when you build with &quot;./configure &amp;&amp; make&quot; on a unix/linux platform.</p><p>To ensure that the application and the library have the same settings could you instead use</p><div class="codebox"><pre><code>#include &quot;user_settings.h&quot;</code></pre></div><p>in place of options.h?</p><p>The library and the application should both have the exact same configuration to ensure proper functionality.</p><p>Please let me know if this resolves the link-time issues you are seeing!</p><br /><p>Warmest Regards,</p><p>Kaleb</p>]]></description>
			<author><![CDATA[null@example.com (Kaleb J. Himes)]]></author>
			<pubDate>Mon, 04 Dec 2017 19:10:21 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post3714.html#p3714</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] Undefined RSA functions from wolfssl.lib]]></title>
			<link>https://www.wolfssl.com/forums/post3709.html#p3709</link>
			<description><![CDATA[<p>Hello,</p><p>Firstly, I am having a blast working with your library (even though nothing is working yet) - kudos!</p><p>Anyways, I have created a user_setting.h file (defined WOLFSSL_USER_SETTINGS in &lt;IDE\WIN\user_settings.h&gt;)with intentions of creating a code singing scheme eventually, but for now, my app is just trying to create a file and dump the generated key-pair in the file. I have been following the &#039;signature&#039; example in your GitHub (I do need a plaintext file since when the future embedded target needs both keys)... The following settings are enabled:<br /></p><div class="codebox"><pre><code>#define NO_DES3
#define NO_DSA
#define NO_MD4
#define NO_RC4
#define NO_RABBIT
#define NO_HC128
#define NO_SESSION_CACHE
#undef NO_PSK
    #define NO_PSK
#define WOLFSSL_KEY_GEN
#define SINGLE_THREADED</code></pre></div><p>I have built wolfSSL with these settings and that is fine - wolfssl.lib sits at 4.3 Mb (a little too big but not the concern right now).</p><p>I think I have linked the wolfssl.lib in my application in Visual Studio as I normally would do correctly (very basic stuff) while including the necessary headers in my app code:<br /></p><div class="codebox"><pre><code>#include &lt;stdio.h&gt;
#include &lt;wolfssl/options.h&gt;
#include &lt;wolfssl/ssl.h&gt;
#include &lt;wolfssl/wolfcrypt/random.h&gt;
#include &lt;wolfssl/wolfcrypt/rsa.h&gt;
#include &lt;wolfssl/wolfcrypt/types.h&gt;</code></pre></div><p>The problems start arising when I compile my app and see the following warnings in the log:<br /></p><div class="codebox"><pre><code>...
c:\wolfssl\test_apps\src\genkeyfiles.c(123): warning C4013: &#039;wc_MakeRsaKey&#039; undefined; assuming extern returning int
c:\wolfssl\test_apps\src\genkeyfiles.c(134): warning C4013: &#039;wc_RsaKeyToDer&#039; undefined; assuming extern returning int
c:\wolfssl\test_apps\src\genkeyfiles.c(149): warning C4013: &#039;wc_RsaKeyToPublicDer&#039; undefined; assuming extern returning int</code></pre></div><p>So it looks as if my app can&#039;t find the definitions of these functions but sees the declaration in the headers provided, and I didn&#039;t turn off anything that RSA needs from my settings (I think?). </p><p><span class="bbu"><strong>Note</strong></span>: I have tried building my app with default settings and the same warnings about &#039;warning C4013: &#039;wc_RsaXxxXxx&#039; undefined still occurs.</p><p>When build, the linker has errors (expected since the .exe I am trying to create can&#039;t find the essential RSA functions):</p><div class="codebox"><pre><code>wolfssl.lib(wolfio.obj) : error LNK2019: unresolved external symbol __imp__recv@16 referenced in function _wolfIO_Recv
wolfssl.lib(wolfio.obj) : error LNK2019: unresolved external symbol __imp__send@16 referenced in function _wolfIO_Send
wolfssl.lib(wolfio.obj) : error LNK2019: unresolved external symbol __imp__WSAGetLastError@0 referenced in function _LastError</code></pre></div><p>Any insight on why the compiler can&#039;t find these functions: wc_MakeRsaKey, wc_RsaKeyToDer, &amp; wc_RsaKeyToPublicDer would be greatly appreciated!</p><br /><p>Thanks and Regards,</p><p>Dylan</p>]]></description>
			<author><![CDATA[null@example.com (lalonde)]]></author>
			<pubDate>Fri, 01 Dec 2017 20:46:17 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post3709.html#p3709</guid>
		</item>
	</channel>
</rss>
