OpenSSL: add detail to certname verify fail log line
authorJeremy Harris <jgh146exb@wizmail.org>
Sun, 11 Dec 2016 16:36:09 +0000 (16:36 +0000)
committerJeremy Harris <jgh146exb@wizmail.org>
Sun, 11 Dec 2016 16:44:55 +0000 (16:44 +0000)
src/src/tls-openssl.c

index 452452df2a40c5ff3c3e58d66f7933e010ab6864..3762c78895c045d6c1f5eb35ae114adb71465874 100644 (file)
@@ -475,9 +475,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)
        {