cp_client_get_server_certificate(3) - Linux man page

Name

cp_client_get_server_certificate - return the certificate pesented by the server for an ssl connection

Synopsis

#include <cprops/client.h>

X509 *cp_client_get_server_certificate(cp_client *client);

Description

cp_client_get_server_certificate may be called on cp_client sockets created with cp_client_create_ssl and successfully connected with cp_client_connect to retrieve a descriptor of the certificate presented by the server during the ssl handshake.

Return Value

The server certificate if available or NULL otherwise.

Referenced By

cp_client_connect(3)