Hi ps2chiper,
I push the branch, you can find It here.
I create a define for EthernetLarge
#define DEFAULT_EMAIL_NETWORK_TYPE_SAMD NETWORK_ETHERNET_LARGE
And you also must uncomment
#define SSLCLIENT_WRAPPER
but in the branch is already uncommented.
You must add thrust anchors with this command
emailSend.setTrustAnchors(TAs, (size_t)TAs_NUM, A3);
I don’t test It, but with your change on bearssl_ssl.h header.
/** \brief Optimal input buffer size. */
//#define BR_SSL_BUFSIZE_INPUT (16384 + 325)
#define BR_SSL_BUFSIZE_INPUT (1024 + 325)
/** \brief Optimal output buffer size. */
//#define BR_SSL_BUFSIZE_OUTPUT (16384 + 85)
#define BR_SSL_BUFSIZE_OUTPUT (1024 + 85)
I also change SSLclient.h from this
unsigned char m_iobuf[2048];
To this
unsigned char m_iobuf[BR_SSL_BUFSIZE_BIDI];
as advised on your example.
But I don’t understand how to manage TLS encryption.
Bye Renzo