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

LDAP C API: ber_* error handling

How does an application determine the type of error resulting
from a failed ber_ API call?

In particular, how does the application determine if a ber_scanf
call failed due to no available memory versus a decoding error?

Can an application use ldap_get_option(NULL,LDAP_OPT_ERROR_NUMBER,&err)
to get BER errors?

I believe some clarification in this area would be wise
(even if that clarification was "obtaining the cause of failed
ber_* calls is implementation specific").