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
- ldap_start_tls_s_np() -- Starts a TLS session with a Certificate.
- ldap_start_tls_app_np() -- Starts a TLS session with an Application ID.
- ldap_ssl_environment_init() -- Initializes SSL for a secure connection between client and server.
- ldap_ssl_client_init() -- Initializes SSL library.
API Introduced: V5R4
[ Back to top | LDAP APIs | APIs by category ]