ldapssl_get_verify_mode

Returns the current server certificate verification mode that is 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_get_verify_mode (
     int  *mode);
  
  

Parameters

mode

(OUT) Current server certificate verify mode. This will be 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_set_verify_mode