]> git.sur5r.net Git - openldap/commitdiff
Fixed "typos" in TLS code. TLS is ATTR_TLS, not ATTR_BOOL.
authorMark Valence <mrv@openldap.org>
Sat, 25 Sep 1999 03:57:25 +0000 (03:57 +0000)
committerMark Valence <mrv@openldap.org>
Sat, 25 Sep 1999 03:57:25 +0000 (03:57 +0000)
ldap_pvt_tls_config() was missing first param.

libraries/libldap/init.c

index 69ffdec8efc49d5796ceb017b7457c10d7e25271..805b1f18ed67a046be653bf77c515aa8a9a5f0a5 100644 (file)
@@ -63,7 +63,7 @@ static const struct ol_attribute {
        {ATTR_BOOL,             "REFERRALS",    NULL,   LDAP_BOOL_REFERRALS},
        {ATTR_BOOL,             "RESTART",              NULL,   LDAP_BOOL_RESTART},
        {ATTR_BOOL,             "DNS",                  NULL,   LDAP_BOOL_DNS},
-       {ATTR_BOOL,             "TLS",                  NULL,   LDAP_OPT_X_TLS},
+       {ATTR_TLS,              "TLS",                  NULL,   LDAP_OPT_X_TLS},
        {ATTR_TLS,              "TLS_CERT",             NULL,   LDAP_OPT_X_TLS_CERTFILE},
        {ATTR_TLS,              "TLS_KEY",              NULL,   LDAP_OPT_X_TLS_KEYFILE},
        {ATTR_TLS,              "TLS_CACERT",   NULL,   LDAP_OPT_X_TLS_CACERTFILE},
@@ -294,7 +294,7 @@ static void openldap_ldap_init_w_env(const char *prefix)
                        break;
                case ATTR_TLS:
 #ifdef HAVE_TLS
-                       ldap_pvt_tls_config( attrs[i].offset, value );
+                       ldap_pvt_tls_config( &gopts, attrs[i].offset, value );
 #endif                         
                        break;
                }