ldapssl_set_verify_mode

Sets the server certificate verification mode used when establishing an SSL connection.

LDAP Version:v3
Library:*ldapssl.*
NDS Version:7.xx or higher
Platform:NLM, Windows (NT, 95, 98, 2000, XP, Vista 32-bit and 64-bit ), Linux (32-bit and 64-bit), Solaris, AIX, and HP-UX

Syntax

  #include <ldap_ssl.h>
  
  int ldapssl_set_verify_mode (
     int  mode);
  
  

Parameters

mode

(IN) Server certificate verify mode. This must be set to the following value:

  • LDAPSSL_VERIFY_SERVER

Return Values

0

Success

-1

Failure

Remarks

The default mode is server verification (LDAPSSL_VERIFY_SERVER).

See Also

ldapssl_get_verify_mode