From 25f81a48e6224ebc37c74599ddaa45e6bf99b7a0 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 13 May 2006 00:29:28 +0000 Subject: [PATCH] Add SSL failure reason to TLS: can't connect message. --- libraries/libldap/tls.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ); -- 2.39.5