From 139944ac1e5fcf74e903e1e3d887fb8498c2fd1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Kuzn=C3=ADk?= Date: Fri, 27 Sep 2024 14:21:20 +0100 Subject: [PATCH] ITS#7982 Log TLS proto+cipher suite on client side --- libraries/libldap/tls2.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/libldap/tls2.c b/libraries/libldap/tls2.c index dea46de0ad..18950c7050 100644 --- a/libraries/libldap/tls2.c +++ b/libraries/libldap/tls2.c @@ -444,6 +444,9 @@ ldap_int_tls_connect( LDAP *ld, LDAPConn *conn, const char *host ) return -1; } + Debug2( LDAP_DEBUG_CONNS, "TLS: session established tls_proto=%s tls_cipher=%s\n", + ldap_pvt_tls_get_version( ssl ), ldap_pvt_tls_get_cipher( ssl ) ); + return 0; }