char * vortex_tls_get_ssl_digest ( const char *  path,
VortexDigestMethod  method 
)

Allows to return the certificate digest from a local stored certificate file (this is also called the certificate fingerprint).

Parameters
pathTreference to pathname of the certificate file.
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), the file don't exist or the system is out of memory.

References VORTEX_MD5, and VORTEX_SHA1.