]> git.sur5r.net Git - openldap/commitdiff
Add SSL failure reason to TLS: can't connect message.
authorHoward Chu <hyc@openldap.org>
Sat, 13 May 2006 00:29:28 +0000 (00:29 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 13 May 2006 00:29:28 +0000 (00:29 +0000)
libraries/libldap/tls.c

index 450db9d2d0922b4c76ddeac33f6f9a8814b6244a..9dfbd73ef478a126db7e71cc49dcfaf83dec1578 100644 (file)
@@ -822,7 +822,8 @@ ldap_int_tls_connect( LDAP *ld, LDAPConn *conn )
 #endif
                }
 
-               Debug( LDAP_DEBUG_ANY,"TLS: can't connect.\n",0,0,0);
+               Debug( LDAP_DEBUG_ANY,"TLS: can't connect: %s.\n",
+                       ld->ld_error ? ld->ld_error : "" ,0,0);
 
                ber_sockbuf_remove_io( sb, &sb_tls_sbio,
                        LBER_SBIOD_LEVEL_TRANSPORT );