From 8d3eb19995fef60a27522378b555a9b56856bf00 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Wed, 30 Mar 2005 23:46:25 +0000 Subject: [PATCH] beautify conditional compilation warning --- servers/slapd/bconfig.c | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) 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 ); -- 2.39.5