Embedded TCP/IP stack
4.7.0
|
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.
tls_sock | TLS socket descriptor. |
hostname | Server hostname, may be FNET_NULL to clear hostname |
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.