Hi Jacob.
WE DID IT!! Yes it was always giving an error in the same spot.
My problem was with my method of the reading of the socket. It was closing the connection for receiving but leaving it open for writing. Hence the socket was not completely disposed and creating a headache for debugging.
I am writing some instructions about how to implement everything on the Pi. As I retrace my steps I remembered something dodgy I had to do earlier.
In order to compile I had to edit random.c in the wolfssl.
int wc_GenerateSeed(OS_Seed* os, byte* output, word32 sz)
{
if(!CryptAcquireContext(&os->handle, 0, 0, PROV_RSA_FULL,
CRYPT_VERIFYCONTEXT))
return WINCRYPT_E;
if (!CryptGenRandom(os->handle, sz, output))
return CRYPTGEN_E;
CryptReleaseContext(os->handle, 0);
return 0;
}
Can you think of any methods that doesn't use this API as it does not appear to be available in platform 10.0.10240.0.
Thanks again for all your help. Hopefully my instructions will save others a lot of time.
Regards