]> git.sur5r.net Git - openldap/commitdiff
fix build without TLS
authorPierangelo Masarati <ando@openldap.org>
Tue, 9 Jan 2007 12:17:46 +0000 (12:17 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 9 Jan 2007 12:17:46 +0000 (12:17 +0000)
servers/slapd/config.c

index 165077d7d0a6b0a5398f17e3c1f83d380d61aee8..4c7f84f6a0a5cb42afbfd9659a553d2ba2e9871e 100644 (file)
@@ -1255,12 +1255,14 @@ slap_tls_get_config( LDAP *ld, int opt, char **val )
 
        *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;
        }
@@ -1289,7 +1291,10 @@ bindconf_tls_parse( const char *word, slap_bindconf *bc )
 int
 bindconf_tls_unparse( slap_bindconf *bc, struct berval *bv )
 {
+#ifdef HAVE_TLS
        return slap_cf_aux_table_unparse( bc, bv, aux_TLS );
+#endif
+       return -1;
 }
 
 int