SWRU455M February 2017 – October 2020 CC3120 , CC3120MOD , CC3130 , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3230S , CC3230SF , CC3235MODAS , CC3235MODASF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
TLS asynchronous events which provide information about the connection:
Example:
void slcbSockEvtHdlr(SlSockEvent_t* pSlSockEvent)
{
char *CAname;
if(SL_SOCKET_ASYNC_EVENT == pSlSockEvent->Event)
{
/* debug print "an event received on socket %d\n",pSlSockEvent->SocketAsyncEvent.SockAsyncData.Sd */switch(pSlSockEvent->SocketAsyncEvent.SockAsyncData.Type)
{
case SL_SSL_NOTIFICATION_CONNECTED_SECURED:
break;
case SL_SSL_NOTIFICATION_HANDSHAKE_FAILED:
break;
case SL_SSL_ACCEPT:
break;
case SL_OTHER_SIDE_CLOSE_SSL_DATA_NOT_ENCRYPTED:
break;
case SL_SSL_NOTIFICATION_WRONG_ROOT_CA:
break;
default:
break;
}
}
}