OpenSSL: add detail to certname verify fail log line
[exim.git] / src / src / tls-openssl.c
index d9426ac9199792906f26f981a5bfdad6cb718ba0..2862111ab54b09afccdb0c9be80310bd4e0cf4f7 100644 (file)
@@ -472,9 +472,9 @@ else
 #endif
       {
       log_write(0, LOG_MAIN,
-               "[%s] SSL verify error: certificate name mismatch: \"%s\"",
-               tlsp == &tls_out ? deliver_host_address : sender_host_address,
-               dn);
+               "[%s] SSL verify error: certificate name mismatch: "
+               "DN=\"%s\" H=\"%s\"",
+               deliver_host_address, dn, verify_cert_hostnames);
       *calledp = TRUE;
       if (!*optionalp)
        {