mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Fixed SSL/TLS context renewal
LDAP_OPT_X_TLS_NEWCTX needs a pointer to 0 as the value for ldap_set_option when renewing a client's SSL context.
This commit is contained in:
parent
86dc9d8a4c
commit
0d5c46d838
1 changed files with 2 additions and 1 deletions
|
|
@ -110,7 +110,8 @@ std::string TlsOptions::getStringOption( tls_option opt ) const {
|
|||
}
|
||||
|
||||
void TlsOptions::newCtx() const {
|
||||
int ret = ldap_set_option( m_ld, LDAP_OPT_X_TLS_NEWCTX, LDAP_OPT_ON);
|
||||
int val = 0;
|
||||
int ret = ldap_set_option( m_ld, LDAP_OPT_X_TLS_NEWCTX, &val);
|
||||
if ( ret != LDAP_OPT_SUCCESS )
|
||||
{
|
||||
if ( ret != LDAP_OPT_ERROR ){
|
||||
|
|
|
|||
Loading…
Reference in a new issue