<?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 — undefined reference to wolfSSL_SHA256_Init]]></title>
		<link>https://www.wolfssl.com/forums/topic740-undefined-reference-to-wolfsslsha256init.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic740.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in undefined reference to wolfSSL_SHA256_Init.]]></description>
		<lastBuildDate>Mon, 16 Nov 2015 16:49:45 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: undefined reference to wolfSSL_SHA256_Init]]></title>
			<link>https://www.wolfssl.com/forums/post2313.html#p2313</link>
			<description><![CDATA[<p>Hi Gareth,</p><p>The wolfSSL_SHA256_Init(), wolfSSL_SHA256_Update(), and wolfSSL_SHA256_Final() functions are part of the wolfSSL OpenSSL Compatibility layer.&nbsp; Are you enabling that layer at compile time when you are building wolfSSL?&nbsp; You can do that when using ./configure with &quot;--enable-opensslextra&quot;, or if using preprocessor flags by defining OPENSSL_EXTRA.</p><p>If you don&#039;t want to use the OpenSSL Compatibility Layer, you can use our wolfCrypt SHA-256 functionality directly through the following header file:</p><div class="codebox"><pre><code>&lt;wolfssl/wolfcrypt/sha256.h&gt;</code></pre></div><p>Specifically the following functions:</p><div class="codebox"><pre><code>int wc_InitSha256(Sha256* sha);
int wc_Sha256Update(Sha256* sha, const byte* data, word32 len);
int wc_Sha256Final(Sha256* sha, byte* out);</code></pre></div><p>Best Regards,<br />Chris</p>]]></description>
			<author><![CDATA[null@example.com (chrisc)]]></author>
			<pubDate>Mon, 16 Nov 2015 16:49:45 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post2313.html#p2313</guid>
		</item>
		<item>
			<title><![CDATA[undefined reference to wolfSSL_SHA256_Init]]></title>
			<link>https://www.wolfssl.com/forums/post2311.html#p2311</link>
			<description><![CDATA[<p>I&#039;m trying to build a very basic application to generate a SHA256 hash from a string. Works no problem with openssl lib but with wolfssl I get the following:</p><div class="codebox"><pre><code>test.c:(.text+0x28): undefined reference to wolfSSL_SHA256_Init&#039;
test.c:(.text+0x48): undefined reference towolfSSL_SHA256_Update&#039;
test.c:(.text+0x5d): undefined reference to `wolfSSL_SHA256_Final&#039;</code></pre></div><p>I&#039;m compiling using gcc on ubuntu with the following:<br />gcc test.c -lm -lwolfssl</p><p>wolfssl lib compiled and installed no problems on my system, i&#039;m using 3.6.0.</p><p>With openssl lib I use:<br />gcc test.c -lm -lcrypto<br />compiles no problem.</p><p>Am I missing something? I&#039;m new to C, any help would be greatly appreciated.</p>]]></description>
			<author><![CDATA[null@example.com (gareth41)]]></author>
			<pubDate>Mon, 16 Nov 2015 04:28:25 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post2311.html#p2311</guid>
		</item>
	</channel>
</rss>
