tls_cert_hash
if (tls_cert_hash(ctx->ssl_peer_cert, hash) == -1) {
int tls_cert_hash(X509 *_cert, char **_hash);