ldap_version -- Obtain LDAP Version and SSL Cipher Information


  Syntax
 #include <ldap.h>
 #include <ldapssl.h>
 
 int ldap_version(
         LDAPVersion  *version )

  Default Public Authority: *USE

  Library Name/Service Program: QSYS/QGLDCLNT

  Threadsafe: Yes

The ldap_version() routine is used to return the toolkit version (multiplied by 100). It also sets information in the LDAPVersion structure.


Authorities and Locks

No IBM® i authority is required.


Parameters

version
(Input) Specifies the address of an LDAPVersion structure that contains the following returned values:



Return Value

Software Developer Toolkit Version
Sets information in the LDAPVersion structure and return the SDK VERSION.

Error Conditions

The ldap_version() API does not return an error code.


Error Messages

The following message may be sent from this function.



API introduced: V4R5

[ Back to top | LDAP APIs | APIs by category ]