void print_ssl_cert_checks(BIO *bio, SSL *s,
				const unsigned char *checkhost,
				const unsigned char *checkemail,
				const char *checkip)
	{
	X509 *peer;
	peer = SSL_get_peer_certificate(s);
	if (peer)
		{
		print_cert_checks(bio, peer, checkhost, checkemail, checkip);
		X509_free(peer);
		}
	}
void print_ssl_cert_checks(BIO *bio, SSL *s,
				const unsigned char *checkhost,
				const unsigned char *checkemail,
				const char *checkip)
	{
	X509 *peer;
	peer = SSL_get_peer_certificate(s);
	if (peer)
		{
		print_cert_checks(bio, peer, checkhost, checkemail, checkip);
		X509_free(peer);
		}
	}