mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
Get and set TLS options
This commit is contained in:
parent
3a80a89061
commit
710f697fb7
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user