<?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 detection in application -- which header to include?]]></title>
		<link>https://www.wolfssl.com/forums/topic1357-feature-detection-in-application-which-header-to-include.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic1357.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Feature detection in application -- which header to include?.]]></description>
		<lastBuildDate>Tue, 07 May 2019 22:55:12 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Feature detection in application -- which header to include?]]></title>
			<link>https://www.wolfssl.com/forums/post4590.html#p4590</link>
			<description><![CDATA[<p>Hi move,</p><p>If you want to detect features enabled by the configure script, you&#039;ll want to use the options file that was mentioned earlier (<strong>wolfssl/options.h</strong>). The <strong>config.h</strong> file is used with the MDK builds and wouldn&#039;t work very well with your application.</p>]]></description>
			<author><![CDATA[null@example.com (alex.abrahamson)]]></author>
			<pubDate>Tue, 07 May 2019 22:55:12 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post4590.html#p4590</guid>
		</item>
		<item>
			<title><![CDATA[Re: Feature detection in application -- which header to include?]]></title>
			<link>https://www.wolfssl.com/forums/post4577.html#p4577</link>
			<description><![CDATA[<div class="quotebox"><cite>alex.abrahamson wrote:</cite><blockquote><p>Every application using the wolfSSL library should be including the file <strong>wolfssl/wolfcrypt/settings.h</strong> before including any other wolfSSL headers, and I see that it is being included in <strong>examples/client/client.c</strong> around line 27. Is this the client you&#039;re referring to?</p></blockquote></div><p>Yes, you&#039;re right. I missed that.</p><p>Suppose I built the library using the configure script, and now want to compile an application, I see one way to detect feature is to define HAVE_CONFIG_H and include the generated config.h, like in the example client:</p><div class="codebox"><pre><code>#ifdef HAVE_CONFIG_H
        #include &lt;config.h&gt;
#endif</code></pre></div><p>Is that a reasonable approach?</p>]]></description>
			<author><![CDATA[null@example.com (move)]]></author>
			<pubDate>Fri, 03 May 2019 00:38:06 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post4577.html#p4577</guid>
		</item>
		<item>
			<title><![CDATA[Re: Feature detection in application -- which header to include?]]></title>
			<link>https://www.wolfssl.com/forums/post4576.html#p4576</link>
			<description><![CDATA[<p>Hi move,</p><p>The two header files you&#039;re referring to aren&#039;t really there for detecting features, they&#039;re there to tell the wolfSSL library which features it should build with. You can search the files to see if features are being used or not though. Depending on the configuration of the wolfSSL library, it can use different settings files under different names.</p><p>The <strong>options.h</strong> file is generated and used when the wolfSSL library is configured and built with automake tools and the configure script. The <strong>settings.h</strong> file is used for setting OS-specific options that the wolfSSL library will use. Every application using the wolfSSL library should be including the file <strong>wolfssl/wolfcrypt/settings.h</strong> before including any other wolfSSL headers, and I see that it is being included in <strong>examples/client/client.c</strong> around line 27. Is this the client you&#039;re referring to?</p><p>If you had any other questions or information that was needed, please feel free to let me know.</p>]]></description>
			<author><![CDATA[null@example.com (alex.abrahamson)]]></author>
			<pubDate>Thu, 02 May 2019 22:41:24 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post4576.html#p4576</guid>
		</item>
		<item>
			<title><![CDATA[Feature detection in application -- which header to include?]]></title>
			<link>https://www.wolfssl.com/forums/post4568.html#p4568</link>
			<description><![CDATA[<p>Hi all,</p><p>I&#039;m working on an HTTPS client using wolfSSL. I want to use HAVE_* or NO_* flags to make the client work with different configurations. I see there are &#039;&#039;wolfssl/options.h&#039;, &#039;wolfssl/wolfcrypt/settings.h&#039;, and config.h produced by configure. Which should I use to detect features? client.c includes neither...</p><p>Fan</p>]]></description>
			<author><![CDATA[null@example.com (move)]]></author>
			<pubDate>Thu, 02 May 2019 17:04:06 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post4568.html#p4568</guid>
		</item>
	</channel>
</rss>
