From: Ondřej Kuzník Date: Fri, 27 Sep 2024 13:21:20 +0000 (+0100) Subject: ITS#7982 Log TLS proto+cipher suite on client side X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=139944ac1e5fcf74e903e1e3d887fb8498c2fd1e;p=thirdparty%2Fopenldap.git ITS#7982 Log TLS proto+cipher suite on client side --- 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; }