LDAP_OPT_SSL_TIMEOUT
Use the LDAP_OPT_SSL_TIMEOUT setting to
specify in seconds the SSL inactivity timer.
After the number of seconds specified, in which no SSL
activity occurs, the SSL connection is refreshed with new session
keys. A smaller value can help increase security, but has a small
affect on performance. The default SSL timeout value is 43200 seconds.
For example:
value = 100;
ldap_set_option( ld, LDAP_OPT_SSL_TIMEOUT, &value );
ldap_get_option( ld, LDAP_OPT_SSL_TIMEOUT, &value) Note: If
you use LDAP_OPT_SSL_TIMEOUT and you are not
running on an SSL version of IBM® Verify Directory, an error is returned.