]> git.sur5r.net Git - openldap/commitdiff
Use ldap_pvt_url_scheme2tls() to test for ldaps://
authorKurt Zeilenga <kurt@openldap.org>
Wed, 7 Jun 2000 17:50:58 +0000 (17:50 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 7 Jun 2000 17:50:58 +0000 (17:50 +0000)
servers/slapd/daemon.c

index aa69d39dfaa4b6d27f47fc5d179cb7d197c833b5..524f98b34976bb8fe40cb9b5f8e90bbaacee62b6 100644 (file)
@@ -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;