From: Howard Chu Date: Fri, 3 Dec 2004 03:22:05 +0000 (+0000) Subject: Fix ITS#3412, bogus TLS option processing X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~149 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a4f3a45b6de7d0515bc1f209a10b6569a20eb10a;p=openldap Fix ITS#3412, bogus TLS option processing --- diff --git a/servers/slapd/config.c b/servers/slapd/config.c index 8acb226066..aa482c3459 100644 --- a/servers/slapd/config.c +++ b/servers/slapd/config.c @@ -1338,14 +1338,14 @@ int config_tls_option(ConfigArgs *c) { int flag; switch(c->type) { - CFG_TLS_RAND: flag = LDAP_OPT_X_TLS_RANDOM_FILE; break; - CFG_TLS_CIPHER: flag = LDAP_OPT_X_TLS_CIPHER_SUITE; break; - CFG_TLS_CERT_FILE: flag = LDAP_OPT_X_TLS_CERTFILE; break; - CFG_TLS_CERT_KEY: flag = LDAP_OPT_X_TLS_KEYFILE; break; - CFG_TLS_CERT_PATH: flag = LDAP_OPT_X_TLS_CACERTDIR; break; - CFG_TLS_CA_FILE: flag = LDAP_OPT_X_TLS_CACERTFILE; break; + case CFG_TLS_RAND: flag = LDAP_OPT_X_TLS_RANDOM_FILE; break; + case CFG_TLS_CIPHER: flag = LDAP_OPT_X_TLS_CIPHER_SUITE; break; + case CFG_TLS_CERT_FILE: flag = LDAP_OPT_X_TLS_CERTFILE; break; + case CFG_TLS_CERT_KEY: flag = LDAP_OPT_X_TLS_KEYFILE; break; + case CFG_TLS_CERT_PATH: flag = LDAP_OPT_X_TLS_CACERTDIR; break; + case CFG_TLS_CA_FILE: flag = LDAP_OPT_X_TLS_CACERTFILE; break; #ifdef HAVE_OPENSSL_CRL - CFG_TLS_CRLCHECK: flag = LDAP_OPT_X_TLS_CRLCHECK; break; + case CFG_TLS_CRLCHECK: flag = LDAP_OPT_X_TLS_CRLCHECK; break; #endif default: Debug(LDAP_DEBUG_ANY, "%s: line %lu: " "unknown tls_option <%x>\n",