[Date Prev][Date Next] [Chronological] [Thread] [Top]

"New" C-API exploitation

I note that the "new" C-API, the ldap_get_*_ber(), in pratice makes very
little use of the LDAPMessage* arg, since it has direct access to the
BerValue pointer.  Also, it makes very little use of the LDAP* arg,
essentially, it sets the error code.

Would anyone object if I allow these functions to be passed a NULL LDAP*
and/or a NULL LDAPMessage *, and in these cases simply avoid using them?
This would ease, for instance, decoding of stuff out of raw ber-encoded
stuff without the need to #include "ldap-int.h" because LDAP and
LDAPMessage are opaque.


Ing. Pierangelo Masarati
Responsabile Open Solution

SysNet s.n.c.
Via Dossi, 8 - 27100 Pavia - ITALIA
Office:   +39.02.23998309          
Mobile:   +39.333.4963172
Email:    pierangelo.masarati@sys-net.it