<?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 — Porting wolfSSL to ch32v307]]></title>
		<link>https://www.wolfssl.com/forums/topic2276-porting-wolfssl-to-ch32v307.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic2276.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Porting wolfSSL to ch32v307.]]></description>
		<lastBuildDate>Wed, 18 Jun 2025 12:37:26 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Porting wolfSSL to ch32v307]]></title>
			<link>https://www.wolfssl.com/forums/post8389.html#p8389</link>
			<description><![CDATA[<p>Hi Rick,</p><p>Thanks for joining the wolfSSL Forums. If this is for a commercial project, I suggest contacting our standard support channel by emailing support@wolfssl.com</p><p>First off, I would suggest testing a more recent version of the library, as v4.4.0 is quite dated and the issue you are seeing may have been resolved.</p><p>Kind regards,<br />Eric - wolfSSL Support</p>]]></description>
			<author><![CDATA[null@example.com (embhorn)]]></author>
			<pubDate>Wed, 18 Jun 2025 12:37:26 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8389.html#p8389</guid>
		</item>
		<item>
			<title><![CDATA[Porting wolfSSL to ch32v307]]></title>
			<link>https://www.wolfssl.com/forums/post8207.html#p8207</link>
			<description><![CDATA[<p>Hi,</p><p>I am working on a project trying to port wolfSSL 4.4 to ch32v307, one RISC-V MCU designed by WCH company. This embed board will work as one ssl client. The mcu has its own protocol library for tcp/udp communication task. I copied wolfssl/wolfcrypt source and header files to mcu project, using user-defined setting file for wolfSSL. Now the compilation is successful and firmware can run in embed board. But from the debug message it is failed during SSL handshake. By wireshark tool, I can observe that ssl client send Client Hello to ssl server and server returns Server Hello, but it has problem when paring the Server Hello packet. I debugged the wolfSSL program, its call stack is like this:</p><p>ssl.c wolfSSL_connect()<br />internal.c ProcessReply()<br />internal.c GetInputData()<br />internal.c wolfSSLReceive()<br />wolfio.c EmbedReceive()<br />wolfio.c wolfIO_Recv()</p><p>From the log the function wolfIO_Recv() reads the whole Server Hello packet which is 1427 bytes, but the wolfSSL expects 5 bytes at first time, then parse the remaining contents of Server Hello. I mean it seems that wolfSSL is trying to parse Server Hello packet by two parts, but wolfIO_Recv() read the packet by one calling.</p><p>Here is the log information (some are wolfSSL messages, some are from my mcu project.)</p><p>wolfSSL Entering wolfSSL_Init<br />wolfSSL Entering wolfCrypt_Init<br />wolfSSL Entering TLSv1_2_client_method_ex<br />wolfSSL Entering wolfSSL_CTX_new_ex<br />wolfSSL Entering wolfSSL_CertManagerNew<br />wolfSSL Leaving WOLFSSL_CTX_new, return 0<br />wolfSSL Entering wolfSSL_CTX_set_verify<br />WCHNET_SocketCreat 0<br />wolfSSL Entering SSL_new<br />wolfSSL Leaving SSL_new, return 0<br />wolfSSL Entering SSL_set_fd<br />wolfSSL Entering SSL_set_read_fd<br />wolfSSL Leaving SSL_set_read_fd, return 1<br />wolfSSL Entering SSL_set_write_fd<br />wolfSSL Leaving SSL_set_write_fd, return 1<br />ssl:20000404<br />MACAddr:200003f8<br />maclen:20017fcc<br />PHY Link Success<br />TCP Connect Success<br />wolfSSL Entering SSL_connect()<br />wolfSSL Entering SendClientHello<br />Adding signature algorithms extension<br />growing output buffer</p><p>Signature Algorithms extension to write<br />Point Formats extension to write<br />Supported Groups extension to write<br />Encrypt-Then-Mac extension to write<br />EMS extension to write<br />sz:142<br />@sz:142 sent:142<br />Shrinking output buffer</p><p>wolfSSL Leaving SendClientHello, return 0<br />enter solfSSL_ETHRx<br />recv data len:1427</p><p>connect state: CLIENT_HELLO_SENT<br />ProcessReply<br />AA<br />GetInputData, size:5</p><p>EmbedReceive: 5<br />wolfIO_Recv: 1427 flag:0<br />@sz:1427 recvd:1427<br />buf:16 03 03 05 FFFFFF8E<br />wolfSSL error occurred, error = -376</p><p>Could anyone give me some suggestions for this problem?</p><p>Does wolfSSL really need to parse Server Hello packet by two parts/calling wolfIO_Recv() twice?<br />Or my user-defined setting header file for wolfSSL has something wrong?</p><p>Thanks,<br />Rick</p>]]></description>
			<author><![CDATA[null@example.com (gyjin20)]]></author>
			<pubDate>Mon, 10 Feb 2025 15:22:05 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8207.html#p8207</guid>
		</item>
	</channel>
</rss>
