Skip to content
Snippets Groups Projects
Commit cee1d863 authored by Ralf Haferkamp's avatar Ralf Haferkamp Committed by Quanah Gibson-Mount
Browse files

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.
parent 7e15dd91
No related branches found
No related tags found
No related merge requests found
......@@ -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 ){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment