From: Pierangelo Masarati Date: Tue, 9 Jan 2007 12:17:46 +0000 (+0000) Subject: fix build without TLS X-Git-Tag: OPENLDAP_REL_ENG_2_4_4ALPHA~8^2~231 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b73915d36f568d349061f60d27fbcc102ecf374a;p=openldap fix build without TLS --- diff --git a/servers/slapd/config.c b/servers/slapd/config.c index 165077d7d0..4c7f84f6a0 100644 --- a/servers/slapd/config.c +++ b/servers/slapd/config.c @@ -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