Well I have now...
In coreMQTT/source/interface/transport_interface.h
I define NetworkContext
and NetworkContext_t
.
/* Each compilation unit must define the NetworkContext struct. */
struct NetworkContext
{
SocketHandle xTCPSocket;
void *xSSLContext;
Tls_t *NgrfTls;
};
typedef struct NetworkContext NetworkContext_t;
Where Tls_t
is our structure containing the everything necessary to use WolfSSL.
Then you must write your own Tls_SocketConnect, Tls_SocketDisconnect, Tls_SocketRecv, and Tls_SocketSend as mentioned in the SDK documetation.