]> git.sur5r.net Git - openldap/commitdiff
Add sasl i/o debugging
authorKurt Zeilenga <kurt@openldap.org>
Thu, 12 Oct 2000 23:50:58 +0000 (23:50 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 12 Oct 2000 23:50:58 +0000 (23:50 +0000)
libraries/libldap/cyrus.c

index 1924d764ad3a5daa21c83b1cbf89aad6c8e4924f..b53570561d7df1c8f073a392e4a81e911e40c86d 100644 (file)
@@ -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 );
        }