cp_client_verify_hostname(3) - Linux man page

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)

Referenced By

cp_client(3)