Embedded TCP/IP stack  4.7.0

◆ fnet_tls_socket_set_hostname()

fnet_return_t fnet_tls_socket_set_hostname ( fnet_tls_socket_t  tls_sock,
const fnet_char_t hostname 
)

Set the host name to check against the received server certificate.

Parameters
tls_sockTLS socket descriptor.
hostnameServer hostname, may be FNET_NULL to clear hostname
Returns
This function returns:
See also
fnet_tls_socket(), fnet_tls_socket_connect()

The function sets or reset the host name to check against the received server certificate.
It is used mainly by TLS client and should be set before TLS handshake.


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