From: Pierangelo Masarati Date: Wed, 30 Mar 2005 23:46:25 +0000 (+0000) Subject: beautify conditional compilation warning X-Git-Tag: OPENLDAP_AC_BP~1032 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8d3eb19995fef60a27522378b555a9b56856bf00;p=openldap beautify conditional compilation warning --- diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index d56e637540..3fbdab5d2d 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -2075,15 +2075,22 @@ config_tls_config(ConfigArgs *c) { { BER_BVNULL, 0 } }, *keys; switch(c->type) { + case CFG_TLS_CRLCHECK: #ifdef HAVE_OPENSSL_CRL - case CFG_TLS_CRLCHECK: flag = LDAP_OPT_X_TLS_CRLCHECK; keys = crlkeys; - break; + flag = LDAP_OPT_X_TLS_CRLCHECK; keys = crlkeys; +#else + Debug(LDAP_DEBUG_ANY, "%s: " + "disabled tls_option \"TLSCRLCheck\"\n", + c->log, c->type, 0); #endif - case CFG_TLS_VERIFY: flag = LDAP_OPT_X_TLS_REQUIRE_CERT; keys = vfykeys; break; - default: Debug(LDAP_DEBUG_ANY, "%s: " - "unknown tls_option <%x>\n", - c->log, c->type, 0); + case CFG_TLS_VERIFY: + flag = LDAP_OPT_X_TLS_REQUIRE_CERT; keys = vfykeys; + break; + default: + Debug(LDAP_DEBUG_ANY, "%s: " + "unknown tls_option <%x>\n", + c->log, c->type, 0); } if (c->op == SLAP_CONFIG_EMIT) { ldap_pvt_tls_get_option( NULL, flag, &c->value_int );