Hello, I am working on getting an email client working. One thing I need to do is to support STARTTLS (port 587). This requires the socket to be opened in plain TCP mode, but then I need to switch the socket to TLS encryption (initiate the TLS handshake with the SMTP server).
This thread eludes this feature that exists in the CC3220 family (e2e.ti.com/.../3320407 ).
I start with creating a normal socket, and it works fine:
socket = SlNetSock_create(SLNETSOCK_AF_INET, SLNETSOCK_SOCK_STREAM, SLNETSOCK_PROTO_TCP, 0, 0);
However, doing this later in the "SMTP dance" to start the handshake doesn't seem to work:
retval = SlNetSock_startSec(socket, secAttribs, SLNETSOCK_SEC_BIND_CONTEXT_ONLY);
(Note: For TLS connection port 465, this works fine all the way through:
socket = SlNetSock_create(SLNETSOCK_AF_INET, SLNETSOCK_SOCK_STREAM, SLNETSOCK_PROTO_SECURE, 0, 0);
Has anyone upgraded a socket to TLS in this way?
Thanks!