Ken Culbert wrote:
Is this function still preferred over ldapssl_*_init() functions and, if so
can anyone point me to an example of how to use this function and the
ldapssl_pkcs_fns structure?

Also, is there SDK documentation available that's more recent than 4.1?

The documentation is old. Sorry about that.

ldapssl_pkcs_init() was deprecated because we found that no one needed all of its complexity. You should use one of these functions instead:

ldapssl_client_init() // basic initialization
ldapssl_serverauth_init() // allows you to specify the SSL strength (verify server cert or not)
ldapssl_clientauth_init() // use if you want to authenticate using a cert.
ldapssl_advclientauth_init() // like ldapssl_clientauth_init() but accepts strength, etc.

As for MT issues, I don't know of any except for a minor memory leak HP found. If you call one of the ldapssl init functions, the prldap layer (NSPR threads) is installed for you and everything should just work on all platforms.


Reply via email to