When use SSL in Arduino issue

When I use the third-party library in Arduino, I find that the first Byte data always is wrong. I traced the code and found it in the SSLDrv::getDataBuf() function in cores\arduino\ssl_drv.cpp

point 1: assign the value of c[0] to _data[0]
poiint2:According to the first point, the _data should be offset by 1 byte, shouldn’t it?

In fact, change code as below , i got correct data

I am not sure if this is the right solution. Or maybe RealTek has other considerations

1 Like

It looks like you are correct, this should be corrected in the next release.

Thanks for pointing out the mistake.

1 Like