SWRU368C May 2018 – January 2021 CC3100 , CC3100MOD , CC3200 , CC3200MOD
sl_Socket(SL_AF_INET, SL_SOCK_STREAM, SL_SEC_SOCKET) – This command opens a secured socket. The first two parameters are typical TCP socket parameters, and the last parameter enables the security.
Use any standard BSD commands (sl_Close, sl_Listen, sl_Accept, sl_Bind, sl_SetSockOpt and so forth) to open client, open server, change socket parameters, and more.
The BSD commands let you connect without choosing the SSL method (SSLv3 TLS1.0/1.1/1.2) and without choosing the connection cipher suit (those two are negotiated in the SSL handshake).
In client socket, the certificate of the server is not verified until the root CA verifies the server.
In server socket, the user must supply the server certificate and private key.
Use the setsockopt command with proprietary options to configure the secured parameters of the socket.