mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-01 14:15:49 +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;
|
return LDAP_OPT_SUCCESS;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
#ifdef HAVE_TLS
|
||||||
|
if ( ldap_pvt_tls_get_option(lo, option, outvalue ) == 0 )
|
||||||
|
return LDAP_OPT_SUCCESS;
|
||||||
|
#endif
|
||||||
/* bad param */
|
/* bad param */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -468,6 +472,10 @@ ldap_set_option(
|
|||||||
return LDAP_OPT_SUCCESS;
|
return LDAP_OPT_SUCCESS;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
#ifdef HAVE_TLS
|
||||||
|
if ( ldap_pvt_tls_set_option( lo, option, invalue ) == 0 )
|
||||||
|
return LDAP_OPT_SUCCESS;
|
||||||
|
#endif
|
||||||
/* bad param */
|
/* bad param */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user