From: Julio Sánchez Fernández Date: Tue, 13 Jul 1999 19:34:07 +0000 (+0000) Subject: Get and set TLS options X-Git-Tag: OPENLDAP_REL_ENG_2_BP~145 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=710f697fb7e2016da200cf27a48e741c63487e16;p=openldap Get and set TLS options --- diff --git a/libraries/libldap/options.c b/libraries/libldap/options.c index b41cdadf7f..b3dd1b4d58 100644 --- a/libraries/libldap/options.c +++ b/libraries/libldap/options.c @@ -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; }