]> git.sur5r.net Git - openldap/commitdiff
ITS#5379 HAVE_TLS dependency
authorHoward Chu <hyc@openldap.org>
Thu, 14 Feb 2008 11:18:22 +0000 (11:18 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 14 Feb 2008 11:18:22 +0000 (11:18 +0000)
servers/slapd/config.c

index b94c02f97c7a810344fbcc8e1222f4d1a084ab88..f2b624fb4e7ccdb95044ddc92e74a9d80b875299 100644 (file)
@@ -1402,19 +1402,18 @@ slap_cf_aux_table_unparse( void *src, struct berval *bv, slap_cf_aux_table *tab0
 int
 slap_tls_get_config( LDAP *ld, int opt, char **val )
 {
+#ifdef HAVE_TLS
        slap_verbmasks *keys;
        int i, ival;
 
        *val = NULL;
        switch( opt ) {
-#ifdef HAVE_TLS
        case LDAP_OPT_X_TLS_CRLCHECK:
                keys = crlkeys;
                break;
        case LDAP_OPT_X_TLS_REQUIRE_CERT:
                keys = vfykeys;
                break;
-#endif
        default:
                return -1;
        }
@@ -1425,6 +1424,7 @@ slap_tls_get_config( LDAP *ld, int opt, char **val )
                        return 0;
                }
        }
+#endif
        return -1;
 }