From: Kurt Zeilenga Date: Wed, 7 Jun 2000 17:50:58 +0000 (+0000) Subject: Use ldap_pvt_url_scheme2tls() to test for ldaps:// X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2717 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=60d6c13d73f531470b2fefe9c82a4aee1d45dd3f;p=openldap Use ldap_pvt_url_scheme2tls() to test for ldaps:// --- diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index aa69d39dfa..524f98b349 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -218,7 +218,7 @@ static Listener * open_listener( const char* url ) } #ifndef HAVE_TLS - if( ldap_is_ldaps_url( url ) ) { + if( ldap_pvt_url_scheme2tls( lud->lud_scheme ) ) { Debug( LDAP_DEBUG_ANY, "daemon: TLS not supported (%s)\n", url, 0, 0 ); @@ -231,7 +231,7 @@ static Listener * open_listener( const char* url ) } #else - l.sl_is_tls = ldap_is_ldaps_url( url ); + l.sl_is_tls = ldap_pvt_url_scheme2tls( lud->lud_scheme ); if(! lud->lud_port ) { lud->lud_port = l.sl_is_tls ? LDAPS_PORT : LDAP_PORT;