Embedded TCP/IP stack  4.7.0

◆ fnet_tls_socket_connect()

fnet_return_t fnet_tls_socket_connect ( fnet_tls_socket_t  tls_sock)

Perform the TLS handshake.

Parameters
tls_sockTLS socket descriptor.
Returns
This function returns:
See also
fnet_tls_socket()

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.


© 2005-2020 by Andrej Butok. http://fnet.sourceforge.net