27 #ifndef __AWS__TLS__H__ 28 #define __AWS__TLS__H__ 39 typedef BaseType_t ( * NetworkRecv_t ) (
void * pvCallerContext,
40 unsigned char * pucReceiveBuffer,
41 size_t xReceiveLength );
52 typedef BaseType_t ( * NetworkSend_t ) (
void * pvCallerContext,
53 const unsigned char * pucData,
72 const char * pcDestination;
73 const char * pcServerCertificate;
74 uint32_t ulServerCertificateLength;
75 const char ** ppcAlpnProtocols;
76 uint32_t ulAlpnProtocolsCount;
78 NetworkRecv_t pxNetworkRecv;
79 NetworkSend_t pxNetworkSend;
80 void * pvCallerContext;
91 BaseType_t TLS_Init(
void ** ppvContext,
101 BaseType_t TLS_Connect(
void * pvContext );
113 BaseType_t TLS_Recv(
void * pvContext,
114 unsigned char * pucReadBuffer,
115 size_t xReadLength );
126 BaseType_t TLS_Send(
void * pvContext,
127 const unsigned char * pucMsg,
135 void TLS_Cleanup(
void * pvContext );
Defines parameter structure for initializing the TLS interface.