From a4f3a45b6de7d0515bc1f209a10b6569a20eb10a Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 3 Dec 2004 03:22:05 +0000 Subject: [PATCH] Fix ITS#3412, bogus TLS option processing --- servers/slapd/config.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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", -- 2.39.5