<?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 — Require Wolfssl with minimal size for CMS/PKCS7 verification]]></title>
		<link>https://www.wolfssl.com/forums/topic1891-require-wolfssl-with-minimal-size-for-cmspkcs7-verification.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic1891.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Require Wolfssl with minimal size for CMS/PKCS7 verification.]]></description>
		<lastBuildDate>Wed, 05 Apr 2023 17:47:46 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Require Wolfssl with minimal size for CMS/PKCS7 verification]]></title>
			<link>https://www.wolfssl.com/forums/post7075.html#p7075</link>
			<description><![CDATA[<p>Hi avlec,</p><p>I recommend sending an email to our support team. It will be easier for us to make suggestions if we first gather your version and config information.</p><p>support@wolfssl.com</p><p>Thanks,<br />Eric</p>]]></description>
			<author><![CDATA[null@example.com (embhorn)]]></author>
			<pubDate>Wed, 05 Apr 2023 17:47:46 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post7075.html#p7075</guid>
		</item>
		<item>
			<title><![CDATA[Re: Require Wolfssl with minimal size for CMS/PKCS7 verification]]></title>
			<link>https://www.wolfssl.com/forums/post7074.html#p7074</link>
			<description><![CDATA[<p>Out of curiosity what was the set of config options that was determined, I am trying to do something similar</p>]]></description>
			<author><![CDATA[null@example.com (avlec)]]></author>
			<pubDate>Wed, 05 Apr 2023 17:32:22 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post7074.html#p7074</guid>
		</item>
		<item>
			<title><![CDATA[Re: Require Wolfssl with minimal size for CMS/PKCS7 verification]]></title>
			<link>https://www.wolfssl.com/forums/post6645.html#p6645</link>
			<description><![CDATA[<p>Responding in ZenDesk ticket</p>]]></description>
			<author><![CDATA[null@example.com (embhorn)]]></author>
			<pubDate>Wed, 13 Jul 2022 14:07:49 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6645.html#p6645</guid>
		</item>
		<item>
			<title><![CDATA[Re: Require Wolfssl with minimal size for CMS/PKCS7 verification]]></title>
			<link>https://www.wolfssl.com/forums/post6643.html#p6643</link>
			<description><![CDATA[<p>Hello Eric,</p><p>Thank you for quick response.<br />For BIO chaining we must need &quot;--enable-opensslall&quot;, whereas &quot;--enable-opensslall&quot; and &quot;--enable-cryptonly&quot; flags are not compatible and can not be used together.<br />So, if we disable opensslall and enable cryptonly flag as shown in below configure comamnd we are facing compilation issues.</p><p>./configure --prefix=/home/mangal/test_work/fresh_wolf/wolfssl_test/ --enable-static --enable-pkcs7 --enable-singlethreaded --disable-pkcs8 --disable-dh --disable-poly1305 --disable-md5 --disable-sha224 --disable-sha384 --disable-sha3 --disable-chacha --disable-examples --disable-crypttests --disable-pkcs11 --disable-benchmark --disable-tls13 --disable-harden --disable-aligndata --disable-eccshamir --disable-errorstrings --disable-errorqueue --disable-oldtls --disable-secure-renegotiation-info --disable-extended-master --disable-enc-then-mac --disable-crypttests --disable-asyncthreads --disable-oldnames --disable-ocsp --disable-rsa --disable-rsapss --disable-fastmath --disable-shared --enable-cryptonly</p><br /><p>Compilation Issues:<br />hm_sigfw_verify.c:925:13: warning: implicit declaration of function ‘wolfSSL_OPENSSL_free’; did you mean ‘wolfSSL_SESSION_free’? [-Wimplicit-function-declaration]<br />&nbsp; 925 |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wolfSSL_OPENSSL_free( ctx-&gt;buf );<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^~~~~~~~~~~~~~~~~~~~<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wolfSSL_SESSION_free<br />hm_sigfw_verify.c: In function ‘hmsigfw_bio_sig_ctrl’:<br />hm_sigfw_verify.c:1354:14: error: ‘BIO_CTRL_RESET’ undeclared (first use in this function)<br /> 1354 |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case BIO_CTRL_RESET:<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^~~~~~~~~~~~~~<br />hm_sigfw_verify.c:1354:14: note: each undeclared identifier is reported only once for each function it appears in<br />hm_sigfw_verify.c:1359:14: error: ‘BIO_CTRL_EOF’ undeclared (first use in this function)<br /> 1359 |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case BIO_CTRL_EOF:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/* More to read */<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^~~~~~~~~~~~<br />hm_sigfw_verify.c:1383:13: error: ‘BIO_CTRL_DUP’ undeclared (first use in this function)<br /> 1383 |&nbsp; &nbsp; &nbsp; &nbsp; case BIO_CTRL_DUP:<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^~~~~~~~~~~~<br />hm_sigfw_verify.c:1384:13: error: ‘BIO_CTRL_WPENDING’ undeclared (first use in this function)<br /> 1384 |&nbsp; &nbsp; &nbsp; &nbsp; case BIO_CTRL_WPENDING:&nbsp; &nbsp; /* More to write in buffer */<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^~~~~~~~~~~~~~~~~<br />hm_sigfw_verify.c:1385:13: error: ‘BIO_CTRL_PENDING’ undeclared (first use in this function)<br /> 1385 |&nbsp; &nbsp; &nbsp; &nbsp; case BIO_CTRL_PENDING:&nbsp; &nbsp; &nbsp;/* More to read in buffer */<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^~~~~~~~~~~~~~~~<br />hm_sigfw_verify.c:1386:13: error: ‘BIO_CTRL_FLUSH’ undeclared (first use in this function)<br /> 1386 |&nbsp; &nbsp; &nbsp; &nbsp; case BIO_CTRL_FLUSH:&nbsp; &nbsp; &nbsp; &nbsp;/* Finally flush the underlying BIO */<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^~~~~~~~~~~~~~<br />hm_sigfw_verify.c:1387:13: error: ‘BIO_CTRL_INFO’ undeclared (first use in this function)<br /> 1387 |&nbsp; &nbsp; &nbsp; &nbsp; case BIO_CTRL_INFO:<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^~~~~~~~~~~~~<br />hm_sigfw_verify.c:1388:13: error: ‘BIO_CTRL_GET’ undeclared (first use in this function)<br /> 1388 |&nbsp; &nbsp; &nbsp; &nbsp; case BIO_CTRL_GET:<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^~~~~~~~~~~~<br />hm_sigfw_verify.c:1389:13: error: ‘BIO_CTRL_SET’ undeclared (first use in this function)<br /> 1389 |&nbsp; &nbsp; &nbsp; &nbsp; case BIO_CTRL_SET:<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^~~~~~~~~~~~<br />hm_sigfw_verify.c:1390:13: error: ‘BIO_CTRL_PUSH’ undeclared (first use in this function)<br /> 1390 |&nbsp; &nbsp; &nbsp; &nbsp; case BIO_CTRL_PUSH:<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^~~~~~~~~~~~~<br />hm_sigfw_verify.c: In function ‘hmsigfw_bio_set_file_type’:<br />hm_sigfw_verify.c:1608:9: warning: implicit declaration of function ‘wolfSSL_BIO_set_fp’; did you mean ‘wolfSSL_BIO_set_fd’? [-Wimplicit-function-declaration]<br /> 1608 |&nbsp; &nbsp; &nbsp;if (wolfSSL_BIO_set_fp(b, fp, BIO_CLOSE) != WOLFSSL_SUCCESS) {<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^~~~~~~~~~~~~~~~~~<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wolfSSL_BIO_set_fd<br />hm_sigfw_verify.c:1608:35: error: ‘BIO_CLOSE’ undeclared (first use in this function)<br /> 1608 |&nbsp; &nbsp; &nbsp;if (wolfSSL_BIO_set_fp(b, fp, BIO_CLOSE) != WOLFSSL_SUCCESS) {<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^~~~~~~~~<br />hm_sigfw_verify.c: In function ‘hm_load_ca_chain’:<br />hm_sigfw_verify.c:1833:27: warning: implicit declaration of function ‘STACK_OF’ [-Wimplicit-function-declaration]<br /> 1833 |&nbsp; &nbsp; /*STACK_OF(X509_INFO)*/STACK_OF(WOLFSSL_X509_INFO) *xis = NULL; /* This is a stack variable, where CA chain certifcates are pushed.*/<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^~~~~~~~<br />hm_sigfw_verify.c:1833:36: error: expected expression before ‘WOLFSSL_X509_INFO’<br /> 1833 |&nbsp; &nbsp; /*STACK_OF(X509_INFO)*/STACK_OF(WOLFSSL_X509_INFO) *xis = NULL; /* This is a stack variable, where CA chain certifcates are pushed.*/<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^~~~~~~~~~~~~~~~~<br />hm_sigfw_verify.c:1833:56: error: ‘xis’ undeclared (first use in this function)<br /> 1833 |&nbsp; &nbsp; /*STACK_OF(X509_INFO)*/STACK_OF(WOLFSSL_X509_INFO) *xis = NULL; /* This is a stack variable, where CA chain certifcates are pushed.*/<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^~~<br />hm_sigfw_verify.c:1852:11: warning: implicit declaration of function ‘wolfSSL_BIO_new_file’; did you mean ‘wolfSSL_BIO_new_fd’? [-Wimplicit-function-declaration]<br /> 1852 |&nbsp; &nbsp; &nbsp;bio = wolfSSL_BIO_new_file(file, &quot;r&quot;);<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^~~~~~~~~~~~~~~~~~~~<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wolfSSL_BIO_new_fd<br />hm_sigfw_verify.c:1852:9: warning: assignment to ‘WOLFSSL_BIO *’ {aka ‘struct WOLFSSL_BIO *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]<br /> 1852 |&nbsp; &nbsp; &nbsp;bio = wolfSSL_BIO_new_file(file, &quot;r&quot;);<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^<br />hm_sigfw_verify.c:1859:13: warning: implicit declaration of function ‘wolfSSL_PEM_X509_INFO_read_bio’ [-Wimplicit-function-declaration]<br /> 1859 |&nbsp; &nbsp; &nbsp; &nbsp;xis = wolfSSL_PEM_X509_INFO_read_bio(bio, NULL,<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />hm_sigfw_verify.c:1868:19: warning: implicit declaration of function ‘wolfSSL_sk_X509_new’; did you mean ‘wolfSSL_X509_new’? [-Wimplicit-function-declaration]<br /> 1868 |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*pcerts = wolfSSL_sk_X509_new();<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^~~~~~~~~~~~~~~~~~~<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wolfSSL_X509_new<br />hm_sigfw_verify.c:1868:17: warning: assignment to ‘WOLFSSL_STACK *’ {aka ‘struct WOLFSSL_STACK *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]<br /> 1868 |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*pcerts = wolfSSL_sk_X509_new();<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^<br />hm_sigfw_verify.c:1874:58: warning: implicit declaration of function ‘wolfSSL_sk_X509_INFO_num’; did you mean ‘wolfSSL_sk_X509_CRL_num’? [-Wimplicit-function-declaration]<br /> 1874 |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for (index = 0; index &lt; /*sk_X509_INFO_num(xis)*/wolfSSL_sk_X509_INFO_num(xis); index++)<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^~~~~~~~~~~~~~~~~~~~~~~~<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wolfSSL_sk_X509_CRL_num<br />hm_sigfw_verify.c:1877:18: warning: implicit declaration of function ‘wolfSSL_sk_X509_INFO_value’; did you mean ‘wolfSSL_sk_X509_CRL_value’? [-Wimplicit-function-declaration]<br /> 1877 |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;xi = wolfSSL_sk_X509_INFO_value(xis, index);<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^~~~~~~~~~~~~~~~~~~~~~~~~~<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wolfSSL_sk_X509_CRL_value<br />hm_sigfw_verify.c:1894:5: warning: implicit declaration of function ‘wolfSSL_sk_X509_INFO_pop_free’; did you mean ‘wolfSSL_sk_X509_CRL_pop_free’? [-Wimplicit-function-declaration]<br /> 1894 |&nbsp; &nbsp; &nbsp;wolfSSL_sk_X509_INFO_pop_free(xis, wolfSSL_X509_INFO_free);<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp;^~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp;wolfSSL_sk_X509_CRL_pop_free<br />hm_sigfw_verify.c:1894:40: error: ‘wolfSSL_X509_INFO_free’ undeclared (first use in this function); did you mean ‘wolfSSL_X509_CRL_free’?<br /> 1894 |&nbsp; &nbsp; &nbsp;wolfSSL_sk_X509_INFO_pop_free(xis, wolfSSL_X509_INFO_free);<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^~~~~~~~~~~~~~~~~~~~~~<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wolfSSL_X509_CRL_free<br />hm_sigfw_verify.c:1898:9: warning: implicit declaration of function ‘wolfSSL_sk_X509_pop_free’; did you mean ‘wolfSSL_sk_X509_CRL_free’? [-Wimplicit-function-declaration]<br /> 1898 |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wolfSSL_sk_X509_pop_free(*pcerts, wolfSSL_X509_free);<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^~~~~~~~~~~~~~~~~~~~~~~~<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wolfSSL_sk_X509_CRL_free<br />hm_sigfw_verify.c: At top level:<br />hm_sigfw_verify.c:1925:28: error: unknown type name ‘PKCS7’<br /> 1925 | int my_verify_signer_certs(PKCS7* pkcs7,WOLFSSL_STACK* certs,WOLFSSL_X509_STORE* store, int flags)<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^~~~~<br />hm_sigfw_verify.c:1981:1: error: unknown type name ‘PKCS7’<br /> 1981 | PKCS7* my_d2i_pkcs7_bio(WOLFSSL_BIO* bio, PKCS7** p7,char *data_s, long unsigned len)<br />&nbsp; &nbsp; &nbsp; | ^~~~~<br />hm_sigfw_verify.c:1981:43: error: unknown type name ‘PKCS7’<br /> 1981 | PKCS7* my_d2i_pkcs7_bio(WOLFSSL_BIO* bio, PKCS7** p7,char *data_s, long unsigned len)<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^~~~~<br />hm_sigfw_verify.c: In function ‘hmapi_cms_signature_verify’:<br />hm_sigfw_verify.c:2054:5: error: unknown type name ‘PKCS7’<br /> 2054 |&nbsp; &nbsp; &nbsp;PKCS7 *pkcs7 = NULL;<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp;^~~~~<br />hm_sigfw_verify.c:2058:5: error: unknown type name ‘WOLFSSL_PKCS7’; did you mean ‘WOLFSSL_OCSP’?<br /> 2058 |&nbsp; &nbsp; &nbsp;WOLFSSL_PKCS7* p7;<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp;^~~~~~~~~~~~~<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp;WOLFSSL_OCSP<br />hm_sigfw_verify.c:2076:31: warning: assignment to ‘WOLFSSL_BIO *’ {aka ‘struct WOLFSSL_BIO *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]<br /> 2076 |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;tbio&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = wolfSSL_BIO_new_file(signer_ca_file_path, &quot;r&quot;);<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^<br />hm_sigfw_verify.c:2090:19: warning: implicit declaration of function ‘wolfSSL_PEM_read_bio_X509’; did you mean ‘wolfSSL_get_chain_X509’? [-Wimplicit-function-declaration]<br /> 2090 |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ca_cert = wolfSSL_PEM_read_bio_X509(tbio, NULL, 0, NULL);<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^~~~~~~~~~~~~~~~~~~~~~~~~<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wolfSSL_get_chain_X509<br />hm_sigfw_verify.c:2090:17: warning: assignment to ‘WOLFSSL_X509 *’ {aka ‘struct WOLFSSL_X509 *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]<br /> 2090 |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ca_cert = wolfSSL_PEM_read_bio_X509(tbio, NULL, 0, NULL);<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^<br />hm_sigfw_verify.c:2133:15: warning: implicit declaration of function ‘wolfSSL_PEM_read_bio’; did you mean ‘wolfSSL_thread_id’? [-Wimplicit-function-declaration]<br /> 2133 |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ret = wolfSSL_PEM_read_bio(cms_sign, &amp;name,&amp;header,&amp;data,&amp;len); // Working fine data having CMS signature in der format<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^~~~~~~~~~~~~~~~~~~~<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wolfSSL_thread_id<br />hm_sigfw_verify.c:2157:2: warning: implicit declaration of function ‘wolfSSL_d2i_PKCS7_ex’; did you mean ‘wolfSSL_d2i_PKCS12_fp’? [-Wimplicit-function-declaration]<br /> 2157 |&nbsp; wolfSSL_d2i_PKCS7_ex(&amp;pkcs7,(const unsigned char**)&amp;data,len,data_total,total_read);<br />&nbsp; &nbsp; &nbsp; |&nbsp; ^~~~~~~~~~~~~~~~~~~~<br />&nbsp; &nbsp; &nbsp; |&nbsp; wolfSSL_d2i_PKCS12_fp<br />hm_sigfw_verify.c:2174:9: warning: implicit declaration of function ‘wc_PKCS7_Free’; did you mean ‘wc_PKCS12_free’? [-Wimplicit-function-declaration]<br /> 2174 |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wc_PKCS7_Free(pkcs7);<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^~~~~~~~~~~~~<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wc_PKCS12_free</p><p>Can you please suggest a way how we can resolve this issue?</p>]]></description>
			<author><![CDATA[null@example.com (anika.gupta25)]]></author>
			<pubDate>Wed, 13 Jul 2022 12:20:06 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6643.html#p6643</guid>
		</item>
		<item>
			<title><![CDATA[Re: Require Wolfssl with minimal size for CMS/PKCS7 verification]]></title>
			<link>https://www.wolfssl.com/forums/post6640.html#p6640</link>
			<description><![CDATA[<p>Hello Anika,</p><p>Thanks for joining the wolfSSL Forums. If you do not require support for TLS protocol, you can greatly reduce the size with </p><div class="codebox"><pre><code>--enable-cryptonly</code></pre></div><p>This should also alleviate some of the component dependencies you were seeing.</p><p>Let us know if there are further questions.</p><p>Thanks,<br />Eric @ wolfSSL Support</p>]]></description>
			<author><![CDATA[null@example.com (embhorn)]]></author>
			<pubDate>Tue, 12 Jul 2022 15:01:33 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6640.html#p6640</guid>
		</item>
		<item>
			<title><![CDATA[Require Wolfssl with minimal size for CMS/PKCS7 verification]]></title>
			<link>https://www.wolfssl.com/forums/post6639.html#p6639</link>
			<description><![CDATA[<p>Hi,</p><p>Need to use wolfSSL with minimal size as much as possible to perform CMS/PKCS7 verification.<br />For that require OPENSSL and PKCS7 utility only as need BIO chaining and verification support from WOLFSSL.</p><p>To achieve this, tried compilation of wolfSSL with below command, and able to reduce the size of wolfssl to 1.9 MB. </p><p>./configure --prefix=/home/mangal/test_work/wolfssl_test2/ --enable-static --enable-singlethreaded --disable-pkcs8 --disable-dh --disable-poly1305 --disable-md5 --disable-sha224 --disable-sha384 --disable-sha3 --disable-chacha --disable-examples --disable-crypttests --disable-pkcs11 --disable-benchmark --disable-tls13 --disable-harden --disable-aligndata --disable-eccshamir --disable-errorstrings --disable-errorqueue --disable-oldtls --disable-secure-renegotiation-info --disable-extended-master --disable-enc-then-mac --disable-crypttests --disable-asyncthreads --disable-oldnames --disable-ocsp --disable-rsa --disable-rsapss --disable-fastmath --disable-shared --enable-opensslall --enable-pkcs7 --disable-kdf </p><p>Need your support for below points:<br />1. Please suggest a way to reduce the wolfssl size further and how I can achieve that?<br />2. How much wolfssl&#039;s size can be reduced just to perform pkcs7 verification with BIO chaining only?<br />3. Facing compilation issues on disabling flags as mentioned below, So Can you please suggest a way how I can disable those flags and remove their dependencies? <br />{--enable-hmac, --enable-asm, --enable-rng, --enable-aescbc, --enable-aesgcm, --enable-SHA512, --enable-ecc, --enable-tlsv12, --enable-memory, --enable-oaep, --enable-asn, --enable-aes, --enable-coding, --enable-base64encode, --enable-sha, --enable-hashdrbg,&nbsp; --enable-filesystem,&nbsp; --enable-inline and --enable-pkcs12}</p>]]></description>
			<author><![CDATA[null@example.com (anika.gupta25)]]></author>
			<pubDate>Tue, 12 Jul 2022 14:33:07 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6639.html#p6639</guid>
		</item>
	</channel>
</rss>
