Method

GioDtlsConnectionget_peer_certificate

Declaration

GTlsCertificate*
g_dtls_connection_get_peer_certificate (
  GDtlsConnection* conn
)

Description

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

Available since:2.48

Return value

Returns: GTlsCertificate
 

conns peer’s certificate, or NULL.

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