From: Kurt Zeilenga Date: Wed, 5 Sep 2001 21:22:41 +0000 (+0000) Subject: Fix TLS ldap.conf issues X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1122 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=05c9d4bfda3ffb1e900018fd88d696a92c9810ad;p=openldap Fix TLS ldap.conf issues --- diff --git a/libraries/libldap/init.c b/libraries/libldap/init.c index f39773a61c..e9c290c4d9 100644 --- a/libraries/libldap/init.c +++ b/libraries/libldap/init.c @@ -221,7 +221,7 @@ static void openldap_ldap_init_w_conf( break; case ATTR_TLS: #ifdef HAVE_TLS - ldap_int_tls_config( gopts, attrs[i].offset, opt ); + ldap_int_tls_config( NULL, attrs[i].offset, opt ); #endif break; } @@ -357,7 +357,7 @@ static void openldap_ldap_init_w_env( break; case ATTR_TLS: #ifdef HAVE_TLS - ldap_int_tls_config( gopts, attrs[i].offset, value ); + ldap_int_tls_config( NULL, attrs[i].offset, value ); #endif break; } diff --git a/libraries/libldap/tls.c b/libraries/libldap/tls.c index 90a11429d8..653caa3ee8 100644 --- a/libraries/libldap/tls.c +++ b/libraries/libldap/tls.c @@ -866,13 +866,13 @@ ldap_int_tls_config( LDAP *ld, int option, const char *arg ) case LDAP_OPT_X_TLS_CERTFILE: case LDAP_OPT_X_TLS_KEYFILE: case LDAP_OPT_X_TLS_RANDOM_FILE: - return ldap_pvt_tls_set_option( NULL, option, (void *) arg ); + return ldap_pvt_tls_set_option( ld, option, (void *) arg ); case LDAP_OPT_X_TLS_REQUIRE_CERT: i = ( ( strcasecmp( arg, "on" ) == 0 ) || ( strcasecmp( arg, "yes" ) == 0) || ( strcasecmp( arg, "true" ) == 0 ) ); - return ldap_pvt_tls_set_option( NULL, option, (void *) &i ); + return ldap_pvt_tls_set_option( ld, option, (void *) &i ); case LDAP_OPT_X_TLS: i = -1;