Embedded TCP/IP stack
4.7.0
|
fnet_return_t fnet_tls_socket_connect | ( | fnet_tls_socket_t | tls_sock | ) |
Perform the TLS handshake.
tls_sock | TLS socket descriptor. |
The function performs TLS handshake on already connected socket.
If the function returns FNET_ERR the TLS handshake is failed and the connection must be closed.
It is optional, as the handshake may be done inside fnet_tls_socket_recv() or fnet_tls_socket_send() call if needed.