Method

GioTlsConnectionget_peer_certificate

since: 2.28

Declaration [src]

GTlsCertificate*
g_tls_connection_get_peer_certificate (
  GTlsConnection* conn
)

Description [src]

Gets conns peer’s certificate after the handshake has completed or failed. (It is not set during the emission of GTlsConnection::accept-certificate.).

Available since: 2.28

Return value

Type: GTlsCertificate

conns peer’s certificate, or NULL.

The returned data is owned by the instance.
The return value can be NULL.