Lines Matching refs:invalue
132 ldap_set_option(LDAP *ld, int option, void *invalue)
143 if (*(int *)invalue != LDAP_DEREF_NEVER &&
144 *(int *)invalue != LDAP_DEREF_SEARCHING &&
145 *(int *)invalue != LDAP_DEREF_FINDING &&
146 *(int *)invalue != LDAP_DEREF_ALWAYS) {
152 ld->ld_deref = *(int *)invalue;
155 ld->ld_sizelimit = *(int *)invalue;
158 ld->ld_timelimit = *(int *)invalue;
162 ld->ld_rebindproc = (LDAP_REBIND_FUNCTION *)invalue;
165 ld->ld_rebind_extra_arg = invalue;
168 if (invalue != LDAP_OPT_ON && invalue != LDAP_OPT_OFF) {
174 ld->ld_follow_referral = invalue ? 1 : 0;
177 if (invalue != LDAP_OPT_ON && invalue != LDAP_OPT_OFF) {
183 ld->ld_restart = invalue ? 1 : 0;
186 if (*(int *)invalue < LDAP_VERSION1 ||
187 *(int *)invalue > LDAP_VERSION3) {
193 ld->ld_version = *(int *)invalue;
200 if (invalue != NULL)
201 ld->ld_srvctrls = ldap_controls_dup(invalue);
208 if (invalue != NULL)
209 ld->ld_cltctrls = ldap_controls_dup(invalue);
216 if ((char *)invalue != NULL)
217 ld->ld_host = strdup((char *)invalue);
227 if ((char *)invalue != NULL)
228 ld->ld_matched = strdup((char *)invalue);
231 ld->ld_connect_timeout = *((int *)invalue);