cp_client_verify_hostname(3)
| cp_socket(3) | cp_client | cp_socket(3) |
NAME
cp_client_verify_hostname - compare the host name used for a connection to the host name given in the certificate presented by the server
SYNOPSIS
#include <cprops/client.h>
int cp_client_verify_hostname(cp_client *client);
DESCRIPTION
cp_client_verify_hostname may be called on cp_client sockets created with cp_client_create_ssl and successfully connected with cp_client_connect to determine if the host name given in the server certificate matches the host name used to make connection.
RETURN VALUE
cp_client_verify_hostname returns non-zero if the host name used to make the connection matches the host name given in the server certificate, or zero on mismatch.
SEE ALSO
cp_client_create_ssl(3), cp_client_connect(3)
| MARCH 2006 | libcprops |
