<?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 — WolfSSL on TI-RTOS Error -308]]></title>
		<link>https://www.wolfssl.com/forums/topic1397-wolfssl-on-tirtos-error-308.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic1397.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in WolfSSL on TI-RTOS Error -308.]]></description>
		<lastBuildDate>Fri, 05 Jul 2019 19:10:18 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: WolfSSL on TI-RTOS Error -308]]></title>
			<link>https://www.wolfssl.com/forums/post4735.html#p4735</link>
			<description><![CDATA[<p>Hi dpkrai93,</p><p>-308 is a socket error, it&#039;s a pretty standard result when the peer rejects the connection for one reason or another. This can be caused by a missing extension that the peer expects to see or a mismatch of cipher suites, etc.</p><p>Can you capture a wireshark trace of the test connection for review?</p><p>Warm Regards,</p><p>KH</p>]]></description>
			<author><![CDATA[null@example.com (Kaleb J. Himes)]]></author>
			<pubDate>Fri, 05 Jul 2019 19:10:18 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post4735.html#p4735</guid>
		</item>
		<item>
			<title><![CDATA[Re: WolfSSL on TI-RTOS Error -308]]></title>
			<link>https://www.wolfssl.com/forums/post4709.html#p4709</link>
			<description><![CDATA[<p>Hi Kaleb,</p><p>I&#039;m working on a TI example for HTTPSGET which is an example provided by TI in TI_RTOS package.</p><p>As this code is provided by them I don&#039;t exactly know how to check the stack and heap&nbsp; and I&#039;m new to SSl.</p><p>But i can see in the code that #define HTTPTASKSTACKSIZE 32768 has been used.</p><p>i&#039;m using CCS v7 and In project properties <br />Set C system stack size value is 512<br />Heap Size for C/C++ dynamic memory allocation is set to 0.</p><p>do i need to change it?</p><br /><p>what else can be a reason for this?</p><p>Embed Send error<br />&nbsp; &nbsp; Connection reset<br />wolfSSL error occured, error = -308</p><br /><br /><p>Regards,<br />Deepak</p>]]></description>
			<author><![CDATA[null@example.com (dpkrai93)]]></author>
			<pubDate>Thu, 13 Jun 2019 20:31:16 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post4709.html#p4709</guid>
		</item>
		<item>
			<title><![CDATA[Re: WolfSSL on TI-RTOS Error -308]]></title>
			<link>https://www.wolfssl.com/forums/post4708.html#p4708</link>
			<description><![CDATA[<p>Hi dpkrai93,</p><p>Can you tell us a bit about yourself and which organization you represent? Can you tell us about the project you are working on involving TI and what is driving these questions? If you do not wish to disclose such details on a public forum please contact us at support@wolfssl.com for a more private venue.</p><p>The most common cause of oddly looping code is stack and heap collisions or corruption. Can you check that your stack and heap are set appropriately large enough to handle the TLS handshake?</p><p>Warm Regards,</p><p>K</p>]]></description>
			<author><![CDATA[null@example.com (Kaleb J. Himes)]]></author>
			<pubDate>Thu, 13 Jun 2019 20:15:13 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post4708.html#p4708</guid>
		</item>
		<item>
			<title><![CDATA[WolfSSL on TI-RTOS Error -308]]></title>
			<link>https://www.wolfssl.com/forums/post4707.html#p4707</link>
			<description><![CDATA[<p>Hi,<br />I&#039;m using TI-RTOS example whith wolfssl 8.0</p><p>In the example all you have to do is add the hostname and its certificate.</p><p>The Hostname I&#039;m using is <a href="https://ev-root.chain-demos.digicert.com">https://ev-root.chain-demos.digicert.com</a> from where you can also get the Certificate. <br />I was getting this error Error! code = 400, desc = httpsTask: cannot get status</p><p>I enabled the debug in wolfSSL and here&#039;s the result of it. I don&#039;t understand why I&#039;m getting this error.</p><p>Can anyone help me with this?</p><p>s in flash<br />Starting the HTTPS GET example<br />System provider is set to SysMin. Halt the target to view any SysMin contents in ROV.<br />Service Status: DHCPC&nbsp; &nbsp; : Enabled&nbsp; :&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : 000<br />Service Status: DHCPC&nbsp; &nbsp; : Enabled&nbsp; : Running&nbsp; : 000<br />Network Added: If-1:192.168.10.69<br />Service Status: DHCPC&nbsp; &nbsp; : Enabled&nbsp; : Running&nbsp; : 017<br />Current time: Thu Jun 13 19:11:25 2019</p><p>Sending a HTTPS GET request to &#039;<a href="https://ev-root.chain-demos.digicert.com">https://ev-root.chain-demos.digicert.com</a>&#039;<br />wolfSSL Entering WOLFSSL_CTX_new<br />wolfSSL Entering wolfSSL_Init<br />wolfSSL Entering wolfSSL_CertManagerNew<br />wolfSSL Leaving WOLFSSL_CTX_new, return 0<br />wolfSSL Entering wolfSSL_CTX_load_verify_buffer<br />Adding a CA<br />wolfSSL Entering GetExplicitVersion<br />wolfSSL Entering GetMyVersion<br />Got Cert Header<br />wolfSSL Entering GetAlgoId<br />wolfSSL Entering GetObjectId()<br />Got Algo ID<br />Getting Cert Name<br />Getting Cert Name<br />Got Subject Name<br />wolfSSL Entering GetAlgoId<br />wolfSSL Entering GetObjectId()<br />Got Key<br />Parsed Past Key<br />wolfSSL Entering DecodeCertExtensions<br />wolfSSL Entering GetObjectId()<br />wolfSSL Entering DecodeKeyUsage<br />wolfSSL Entering GetObjectId()<br />wolfSSL Entering DecodeBasicCaConstraint<br />wolfSSL Entering GetObjectId()<br />wolfSSL Entering DecodeSubjKeyId<br />wolfSSL Entering GetObjectId()<br />wolfSSL Entering DecodeAuthKeyId<br />wolfSSL Entering GetAlgoId<br />wolfSSL Entering GetObjectId()<br />&nbsp; &nbsp; Parsed new CA<br />&nbsp; &nbsp; Freeing Parsed CA<br />&nbsp; &nbsp; Freeing der CA<br />&nbsp; &nbsp; &nbsp; &nbsp; OK Freeing der CA<br />wolfSSL Leaving AddCA, return 0<br />wolfSSL Entering SSL_new<br />wolfSSL Leaving SSL_new, return 0<br />wolfSSL Entering SSL_set_fd<br />wolfSSL Leaving SSL_set_fd, return 1<br />wolfSSL Entering wolfSSL_send()<br />wolfSSL Entering SSL_write()<br />handshake not complete, trying to finish<br />wolfSSL Entering wolfSSL_negotiate<br />wolfSSL Entering SSL_connect()<br />growing output buffer</p><p>Shrinking output buffer</p><p>connect state: CLIENT_HELLO_SENT<br />growing input buffer</p><p>received record layer msg<br />wolfSSL Entering DoHandShakeMsg()<br />wolfSSL Entering DoHandShakeMsgType<br />processing server hello<br />wolfSSL Entering VerifyClientSuite<br />wolfSSL Leaving DoHandShakeMsgType(), return 0<br />wolfSSL Leaving DoHandShakeMsg(), return 0<br />growing input buffer</p><p>received record layer msg<br />wolfSSL Entering DoHandShakeMsg()<br />wolfSSL Entering DoHandShakeMsgType<br />processing certificate<br />Loading peer&#039;s cert chain<br />&nbsp; &nbsp; Put another cert into chain<br />&nbsp; &nbsp; Put another cert into chain<br />wolfSSL Entering GetExplicitVersion<br />wolfSSL Entering GetMyVersion<br />Got Cert Header<br />wolfSSL Entering GetAlgoId<br />wolfSSL Entering GetObjectId()<br />Got Algo ID<br />Getting Cert Name<br />Getting Cert Name<br />Got Subject Name<br />wolfSSL Entering GetAlgoId<br />wolfSSL Entering GetObjectId()<br />Got Key<br />Parsed Past Key<br />wolfSSL Entering DecodeCertExtensions<br />wolfSSL Entering GetObjectId()<br />wolfSSL Entering DecodeBasicCaConstraint<br />wolfSSL Entering GetObjectId()<br />wolfSSL Entering DecodeKeyUsage<br />wolfSSL Entering GetObjectId()<br />wolfSSL Entering DecodeExtKeyUsage<br />wolfSSL Entering GetObjectId()<br />wolfSSL Entering GetObjectId()<br />wolfSSL Entering GetObjectId()<br />wolfSSL Entering DecodeAuthInfo<br />wolfSSL Entering GetObjectId()<br />wolfSSL Entering GetObjectId()<br />wolfSSL Entering DecodeCrlDist<br />wolfSSL Entering GetObjectId()<br />Certificate Policy extension not supported yet.<br />wolfSSL Entering GetObjectId()<br />wolfSSL Entering DecodeSubjKeyId<br />wolfSSL Entering GetObjectId()<br />wolfSSL Entering DecodeAuthKeyId<br />wolfSSL Entering GetAlgoId<br />wolfSSL Entering GetObjectId()<br />About to verify certificate signature<br />Adding CA from chain<br />Adding a CA<br />wolfSSL Entering GetExplicitVersion<br />wolfSSL Entering GetMyVersion<br />Got Cert Header<br />wolfSSL Entering GetAlgoId<br />wolfSSL Entering GetObjectId()<br />Got Algo ID<br />Getting Cert Name<br />Getting Cert Name<br />Got Subject Name<br />wolfSSL Entering GetAlgoId<br />wolfSSL Entering GetObjectId()<br />Got Key<br />Parsed Past Key<br />wolfSSL Entering DecodeCertExtensions<br />wolfSSL Entering GetObjectId()<br />wolfSSL Entering DecodeBasicCaConstraint<br />wolfSSL Entering GetObjectId()<br />wolfSSL Entering DecodeKeyUsage<br />wolfSSL Entering GetObjectId()<br />wolfSSL Entering DecodeExtKeyUsage<br />wolfSSL Entering GetObjectId()<br />wolfSSL Entering GetObjectId()<br />wolfSSL Entering GetObjectId()<br />wolfSSL Entering DecodeAuthInfo<br />wolfSSL Entering GetObjectId()<br />wolfSSL Entering GetObjectId()<br />wolfSSL Entering DecodeCrlDist<br />wolfSSL Entering GetObjectId()<br />Certificate Policy extension not supported yet.<br />wolfSSL Entering GetObjectId()<br />wolfSSL Entering DecodeSubjKeyId<br />wolfSSL Entering GetObjectId()<br />wolfSSL Entering DecodeAuthKeyId<br />wolfSSL Entering GetAlgoId<br />wolfSSL Entering GetObjectId()<br />&nbsp; &nbsp; Parsed new CA<br />&nbsp; &nbsp; Freeing Parsed CA<br />&nbsp; &nbsp; Freeing der CA<br />&nbsp; &nbsp; &nbsp; &nbsp; OK Freeing der CA<br />wolfSSL Leaving AddCA, return 0<br />Verifying Peer&#039;s cert<br />wolfSSL Entering GetExplicitVersion<br />wolfSSL Entering GetMyVersion<br />Got Cert Header<br />wolfSSL Entering GetAlgoId<br />wolfSSL Entering GetObjectId()<br />Got Algo ID<br />Getting Cert Name<br />Getting Cert Name<br />Got Subject Name<br />wolfSSL Entering GetAlgoId<br />wolfSSL Entering GetObjectId()<br />Got Key<br />Parsed Past Key<br />wolfSSL Entering DecodeCertExtensions<br />wolfSSL Entering GetObjectId()<br />wolfSSL Entering DecodeAuthKeyId<br />wolfSSL Entering GetObjectId()<br />wolfSSL Entering DecodeSubjKeyId<br />wolfSSL Entering GetObjectId()<br />wolfSSL Entering DecodeAltNames<br />wolfSSL Entering GetObjectId()<br />wolfSSL Entering DecodeKeyUsage<br />wolfSSL Entering GetObjectId()<br />wolfSSL Entering DecodeExtKeyUsage<br />wolfSSL Entering GetObjectId()<br />wolfSSL Entering GetObjectId()<br />wolfSSL Entering GetObjectId()<br />wolfSSL Entering DecodeCrlDist<br />&nbsp; &nbsp; There are more CRL Distribution Point records, but we only use the first one.<br />wolfSSL Entering GetObjectId()<br />Certificate Policy extension not supported yet.<br />wolfSSL Entering GetObjectId()<br />wolfSSL Entering DecodeAuthInfo<br />wolfSSL Entering GetObjectId()<br />wolfSSL Entering GetObjectId()<br />wolfSSL Entering DecodeBasicCaConstraint<br />wolfSSL Entering GetObjectId()<br />wolfSSL Entering GetAlgoId<br />wolfSSL Entering GetObjectId()<br />About to verify certificate signature<br />Verified Peer&#039;s cert<br />wolfSSL Leaving DoHandShakeMsgType(), return 0<br />wolfSSL Leaving DoHandShakeMsg(), return 0<br />received record layer msg<br />wolfSSL Entering DoHandShakeMsg()<br />wolfSSL Entering DoHandShakeMsgType<br />processing server key exchange<br />wolfSSL Leaving DoHandShakeMsgType(), return 0<br />wolfSSL Leaving DoHandShakeMsg(), return 0<br />received record layer msg<br />wolfSSL Entering DoHandShakeMsg()<br />wolfSSL Entering DoHandShakeMsgType<br />processing server hello done<br />wolfSSL Leaving DoHandShakeMsgType(), return 0<br />wolfSSL Leaving DoHandShakeMsg(), return 0<br />connect state: HELLO_AGAIN<br />connect state: HELLO_AGAIN_REPLY<br />connect state: FIRST_REPLY_DONE<br />connect state: FIRST_REPLY_FIRST<br />growing output buffer</p><p>Shrinking output buffer</p><p>sent: client key exchange<br />connect state: FIRST_REPLY_SECOND<br />connect state: FIRST_REPLY_THIRD<br />growing output buffer</p><p>Shrinking output buffer</p><p>sent: change cipher spec<br />connect state: FIRST_REPLY_FOURTH<br />growing output buffer</p><p>Shrinking output buffer</p><p>sent: finished<br />connect state: FINISHED_DONE<br />received record layer msg<br />got CHANGE CIPHER SPEC<br />received record layer msg<br />wolfSSL Entering DoHandShakeMsg()<br />wolfSSL Entering DoHandShakeMsgType<br />processing finished<br />wolfSSL Leaving DoHandShakeMsgType(), return 0<br />wolfSSL Leaving DoHandShakeMsg(), return 0<br />connect state: SECOND_REPLY_DONE<br />Shrinking input buffer</p><p>wolfSSL Leaving SSL_connect(), return 1<br />wolfSSL Leaving wolfSSL_negotiate, return 1<br />growing output buffer</p><p>Shrinking output buffer</p><p>wolfSSL Leaving SSL_write(), return 16<br />wolfSSL Leaving wolfSSL_send(), return 16<br />wolfSSL Entering wolfSSL_send()<br />wolfSSL Entering SSL_write()<br />growing output buffer</p><p>Shrinking output buffer</p><p>wolfSSL Leaving SSL_write(), return 48<br />wolfSSL Leaving wolfSSL_send(), return 48<br />wolfSSL Entering wolfSSL_send()<br />wolfSSL Entering SSL_write()<br />growing output buffer</p><p>Shrinking output buffer</p><p>wolfSSL Leaving SSL_write(), return 36<br />wolfSSL Leaving wolfSSL_send(), return 36<br />wolfSSL Entering wolfSSL_send()<br />wolfSSL Entering SSL_write()<br />growing output buffer</p><p>Embed Send error<br />&nbsp; &nbsp; Connection reset<br />wolfSSL error occured, error = -308<br />wolfSSL Leaving SSL_write(), return 0<br />wolfSSL Leaving wolfSSL_send(), return 0<br />wolfSSL Entering wolfSSL_send()<br />wolfSSL Entering SSL_write()<br />output buffer was full, trying to send again<br />Embed Send error<br />&nbsp; &nbsp; General error<br />wolfSSL error occured, error = -308<br />wolfSSL Leaving SSL_write(), return 0<br />wolfSSL Leaving wolfSSL_send(), return 0<br />wolfSSL Entering wolfSSL_send()<br />wolfSSL Entering SSL_write()<br />output buffer was full, trying to send again</p><p>After this it keeps on printing the same last 8 lines and doesn&#039;t stop.</p>]]></description>
			<author><![CDATA[null@example.com (dpkrai93)]]></author>
			<pubDate>Thu, 13 Jun 2019 19:20:36 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post4707.html#p4707</guid>
		</item>
	</channel>
</rss>
