]> git.sur5r.net Git - openldap/commitdiff
Accept X-starttls for prev commit
authorHoward Chu <hyc@openldap.org>
Tue, 7 Oct 2008 03:13:00 +0000 (03:13 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 7 Oct 2008 03:13:00 +0000 (03:13 +0000)
libraries/libldap/request.c

index d4076fdddeea9151e6c1e4e16eae5be3afbd576c..a7784771dc22c9234775e3d5b103ea0f49f89d5e 100644 (file)
@@ -370,6 +370,7 @@ find_tls_ext( LDAPURLDesc *srv )
                        crit = 1;
                }
                if ( !strcasecmp( ext, "StartTLS" ) ||
+                       !strcasecmp( ext, "X-StartTLS" ) ||
                        !strcmp( ext, LDAP_EXOP_START_TLS )) {
                        return crit + 1;
                }
@@ -1083,10 +1084,10 @@ ldap_chase_v3referrals( LDAP *ld, LDAPRequest *lr, char **refs, int sref, char *
                                ok = 1;
 #endif
                        if ( !ok ) {
-                                       /* we do not support any other extensions */
-                                       ld->ld_errno = LDAP_NOT_SUPPORTED;
-                                       rc = -1;
-                                       goto done;
+                               /* we do not support any other extensions */
+                               ld->ld_errno = LDAP_NOT_SUPPORTED;
+                               rc = -1;
+                               goto done;
                        }
                }