ldap_stop_tls_s_np()--End a TLS Session


  Syntax

  #include <ldap.h>

  int ldap_stop_tls_s_np(
LDAP *ld)

  Library Name/Service Program: QSYS/QGLDCLNT

  Default Public Authority: *USE

  Threadsafe: Yes

The ldap_stop_tls_s_np() function is used to end a previously established TLS session to a server. Depending on the server implementation, further communication using the LDAP handle uses the original unsecured connection, or the connection may be closed by the server.


Authorities and Locks

No IBM® i authority is required. All authority checking is done by the LDAP server.


Parameters

ld
(Input) Specifies the LDAP pointer used in a previous call to ldap_start_tls_s_np() or ldap_start_tls_app_np(). Must not be NULL.


Return Value

LDAP_SUCCESS
if the request was successful.
another LDAP error
if the request was not successful.

Related Information



API Introduced: V5R4

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