From 710f697fb7e2016da200cf27a48e741c63487e16 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julio=20S=C3=A1nchez=20Fern=C3=A1ndez?= Date: Tue, 13 Jul 1999 19:34:07 +0000 Subject: [PATCH] Get and set TLS options --- libraries/libldap/options.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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; } -- 2.39.5