From: Howard Chu Date: Sat, 13 May 2006 00:29:28 +0000 (+0000) Subject: Add SSL failure reason to TLS: can't connect message. X-Git-Tag: OPENLDAP_REL_ENG_2_4_1ALPHA~2^2~28 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=25f81a48e6224ebc37c74599ddaa45e6bf99b7a0;p=openldap Add SSL failure reason to TLS: can't connect message. --- diff --git a/libraries/libldap/tls.c b/libraries/libldap/tls.c index 450db9d2d0..9dfbd73ef4 100644 --- a/libraries/libldap/tls.c +++ b/libraries/libldap/tls.c @@ -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 );