]> git.sur5r.net Git - openldap/commitdiff
beautify conditional compilation warning
authorPierangelo Masarati <ando@openldap.org>
Wed, 30 Mar 2005 23:46:25 +0000 (23:46 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 30 Mar 2005 23:46:25 +0000 (23:46 +0000)
servers/slapd/bconfig.c

index d56e63754097ff751a18acdbfef3ce26e66a241f..3fbdab5d2db5358d038af93d36bc429c39966d4e 100644 (file)
@@ -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 );