]> git.sur5r.net Git - openldap/commitdiff
Fix ITS#3412, bogus TLS option processing
authorHoward Chu <hyc@openldap.org>
Fri, 3 Dec 2004 03:22:05 +0000 (03:22 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 3 Dec 2004 03:22:05 +0000 (03:22 +0000)
servers/slapd/config.c

index 8acb226066fedcf0b139d1681f1b95d012d62cc1..aa482c3459d2e1346de643732764a9780065a201 100644 (file)
@@ -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",