From: Kurt Zeilenga Date: Thu, 12 Oct 2000 23:50:58 +0000 (+0000) Subject: Add sasl i/o debugging X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1762 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2a6f092422c917bcdbe822cb881dfafb97d81139;p=openldap Add sasl i/o debugging --- diff --git a/libraries/libldap/cyrus.c b/libraries/libldap/cyrus.c index 1924d764ad..b53570561d 100644 --- a/libraries/libldap/cyrus.c +++ b/libraries/libldap/cyrus.c @@ -328,6 +328,10 @@ int ldap_pvt_sasl_install( Sockbuf *sb, void *ctx_arg ) if ( !ber_sockbuf_ctrl( sb, LBER_SB_OPT_HAS_IO, &ldap_pvt_sockbuf_io_sasl ) ) { +#ifdef LDAP_DEBUG + ber_sockbuf_add_io( sb, &ber_sockbuf_io_debug, + LBER_SBIOD_LEVEL_APPLICATION, (void *)"sasl_" ); +#endif ber_sockbuf_add_io( sb, &ldap_pvt_sockbuf_io_sasl, LBER_SBIOD_LEVEL_APPLICATION, ctx_arg ); }