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 452452d..3762c78 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)
        {