char * myqtt_tls_get_peer_ssl_digest ( MyQttConn connection,
MyQttDigestMethod  method 
)

Allows to return the certificate digest from the remote peer given TLS session is activated (this is also called the certificate fingerprint).

Parameters
connectionThe connection where a TLS session was activated, and a message digest is required using as input the certificate provided by the remote peer.
methodThis is the digest method to use.
Returns
A newly allocated fingerprint or NULL if it fails. If NULL is returned there is a TLS error (certificate not provided) or the system is out of memory.

References MYQTT_MD5, MYQTT_SHA1, and myqtt_tls_get_ssl_object().