Common Errors and Asynchronous Events
106
SWRU455A – February 2017 – Revised March 2017
Copyright © 2017, Texas Instruments Incorporated
Secure Socket
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
;
}
}
}
7.7.2 Common Errors
lists the common errors.
Table 7-4. Common Errors
Error
Client
Server
SL_ERROR_BSD_ESECSNOVERIFY
Connected without verifying the peer.
Use sl_SetSockOpt to set the CA to verify
the peer.
N/A
SL_ERROR_BSD_ESECNOCAFILE
The CA filename used in the
sl_SetSockOpt is not in the file system.
Use the correct filename, or program the
file in the name desired.
The CA filename used in the
sl_SetSockOpt is not in the file system.
Use the correct filename, or program the
file in the name desired.
SL_ERROR_BSD_ESECBADCAFILE
SL_ERROR_BSD_ESECBADCERTFILE
SL_ERROR_BSD_ESECBADPRIVATEFI
LE
SL_ERROR_BSD_ESECBADDHFILE
The file is not valid.
Check if it is a valid DER/PEM CA file.
The file is not valid.
Check if it is a valid DER/PEM CA file.
SL_ERROR_BSD_ESECT00MANYSSLO
PENED
Exceed maximum SSL connections.
The SimpleLink supports only six SSL
connected sockets.
Exceed maximum SSL connections.
The SimpleLink supports only 6 SSL
connected sockets.
SL_ERROR_BSD_ESECDATEERROR
Connected but with error verifying time
and date on the certificates error of the
server.
Set the time and date on the device or
check the certificate date of the other side.
N/A
SL_ERROR_BSD_ESEC_SOCKET_ERR
OR
TCP socket was disconnected during the
SSL handshake.
This usually occurs when the other side
closed the connection. Investigate the
peer.
TCP socket was disconnected during the
SSL handshake.
This usualyl occurs when the other side
closed the connection. Investigate the
peer.
SL_ERROR_BSD_ESEC_ASN_NO_SIGN
ER
Could not verify one of the certificates in
the peer’s cert.
This usually occurs when using a wrong
CA to verify the peer. Use the
SL_SSL_NOTIFICATION_WRONG_ROO
T_CA to get the desired CA
CommonName.
Could not verify one of the certificates in
the peer’s cert.
SL_ERROR_BSD_ESECUNKNOWNROO
TCA
Connected but the root CA used to verify
the peer is unknown to TI. That means it
does not appear in the trusted root-
certificate catalog.
N/A