Lines Matching defs:optdata
38 #define LDAP_SETCLR_BITOPT(ld, bit, optdata) \
39 if (optdata != NULL) { \
48 ldap_set_option(LDAP *ld, int option, const void *optdata)
64 nsldapi_memalloc_fns = *((struct ldap_memalloc_fns *)optdata);
87 ldap_debug = *((int *)optdata);
120 LDAP_SETCLR_BITOPT(ld, LDAP_BITOPT_DNS, optdata);
125 LDAP_SETCLR_BITOPT(ld, LDAP_BITOPT_REFERRALS, optdata);
130 LDAP_SETCLR_BITOPT(ld, LDAP_BITOPT_SSL, optdata);
135 LDAP_SETCLR_BITOPT(ld, LDAP_BITOPT_RESTART, optdata);
139 LDAP_SETCLR_BITOPT(ld, LDAP_BITOPT_RECONNECT, optdata);
144 LDAP_SETCLR_BITOPT(ld, LDAP_BITOPT_ASYNC, optdata);
150 ld->ld_deref = *((int *)optdata);
153 ld->ld_sizelimit = *((int *)optdata);
156 ld->ld_timelimit = *((int *)optdata);
159 ld->ld_refhoplimit = *((int *)optdata);
162 ld->ld_version = *((int *)optdata);
170 (LDAPControl **)optdata);
175 (LDAPControl **)optdata);
180 ld->ld_rebind_fn = (LDAP_REBINDPROC_CALLBACK *) optdata;
183 ld->ld_rebind_arg = (void *) optdata;
190 (struct ldap_io_fns *)optdata)) != LDAP_SUCCESS) {
199 if (((struct ldap_x_ext_io_fns_rev0 *)optdata)->lextiof_size ==
203 ((struct ldap_x_ext_io_fns_rev0 *)optdata)->lextiof_close;
205 ((struct ldap_x_ext_io_fns_rev0 *)optdata)->lextiof_connect;
207 ((struct ldap_x_ext_io_fns_rev0 *)optdata)->lextiof_read;
209 ((struct ldap_x_ext_io_fns_rev0 *)optdata)->lextiof_write;
211 ((struct ldap_x_ext_io_fns_rev0 *)optdata)->lextiof_poll;
213 ((struct ldap_x_ext_io_fns_rev0 *)optdata)->lextiof_newhandle;
215 ((struct ldap_x_ext_io_fns_rev0 *)optdata)->
218 ((struct ldap_x_ext_io_fns_rev0 *)optdata)->lextiof_session_arg;
226 ld->ld_ext_io_fns = *((struct ldap_x_ext_io_fns *)optdata);
246 ld->ld_thread = *((struct ldap_thread_fns *)optdata);
257 ld->ld_thread2 = *((struct ldap_extra_thread_fns *)optdata);
279 ld->ld_dnsfn = *((struct ldap_dns_fns *)optdata);
285 ld->ld_cache = *((struct ldap_cache_fns *)optdata);
288 ld->ld_cache_strategy = *((int *)optdata);
291 ld->ld_cache_on = *((int *)optdata);
298 LDAP_SET_LDERRNO(ld, *((int *)optdata), matched, errstr);
305 nsldapi_strdup((char *)optdata));
313 nsldapi_strdup((char *)optdata), errstr);
321 ld->ld_preferred_language = nsldapi_strdup((char *)optdata);
328 ld->ld_defhost = nsldapi_strdup((char *)optdata);
332 ld->ld_connect_timeout = *((int *)optdata);
338 rc = prldap_x_install_dns_skipdb(ld, (const char *)optdata);
348 ld->ld_def_sasl_mech = nsldapi_strdup((char *)optdata);
354 ld->ld_def_sasl_realm = nsldapi_strdup((char *)optdata);
360 ld->ld_def_sasl_authcid = nsldapi_strdup((char *)optdata);
366 ld->ld_def_sasl_authzid = nsldapi_strdup((char *)optdata);
383 extprops = * ((sasl_ssf_t *)optdata);
394 sc = nsldapi_sasl_secprops((char *)optdata,
399 ld->ld_sasl_secprops.min_ssf = *((sasl_ssf_t *)optdata);
402 ld->ld_sasl_secprops.max_ssf = *((sasl_ssf_t *)optdata);
405 ld->ld_sasl_secprops.maxbufsize = *((sasl_ssf_t *)optdata);