]> git.sur5r.net Git - openldap/commitdiff
Get and set TLS options
authorJulio Sánchez Fernández <jsanchez@openldap.org>
Tue, 13 Jul 1999 19:34:07 +0000 (19:34 +0000)
committerJulio Sánchez Fernández <jsanchez@openldap.org>
Tue, 13 Jul 1999 19:34:07 +0000 (19:34 +0000)
libraries/libldap/options.c

index b41cdadf7fb74baecd7827920172f3150791f304..b3dd1b4d58f3a9b073949b0c3405d4348be815aa 100644 (file)
@@ -268,6 +268,10 @@ ldap_get_option(
                return LDAP_OPT_SUCCESS;
 
        default:
+#ifdef HAVE_TLS
+               if ( ldap_pvt_tls_get_option(lo, option, outvalue ) == 0 )
+                       return LDAP_OPT_SUCCESS;
+#endif
                /* bad param */
                break;
        }
@@ -468,6 +472,10 @@ ldap_set_option(
                return LDAP_OPT_SUCCESS;
 
        default:
+#ifdef HAVE_TLS
+               if ( ldap_pvt_tls_set_option( lo, option, invalue ) == 0 )
+                       return LDAP_OPT_SUCCESS;
+#endif
                /* bad param */
                break;
        }