Lines Matching refs:set
252 data->set.proxyauth = auth; in httpauth()
254 data->set.httpauth = auth; in httpauth()
270 data->set.dns_cache_timeout = (int)arg; in setopt_long()
279 data->set.general_ssl.ca_cache_timeout = (int)arg; in setopt_long()
291 data->set.maxconnects = (unsigned int)uarg; in setopt_long()
298 data->set.reuse_forbid = enabled; in setopt_long()
305 data->set.reuse_fresh = enabled; in setopt_long()
312 data->set.verbose = enabled; in setopt_long()
318 data->set.include_header = enabled; in setopt_long()
324 data->set.hide_progress = enabled; in setopt_long()
325 if(data->set.hide_progress) in setopt_long()
334 data->set.opt_no_body = enabled; in setopt_long()
336 if(data->set.opt_no_body) in setopt_long()
338 data->set.method = HTTPREQ_HEAD; in setopt_long()
339 else if(data->set.method == HTTPREQ_HEAD) in setopt_long()
340 data->set.method = HTTPREQ_GET; in setopt_long()
348 data->set.http_fail_on_error = enabled; in setopt_long()
351 data->set.http_keep_sending_on_error = enabled; in setopt_long()
361 data->set.method = HTTPREQ_PUT; in setopt_long()
362 data->set.opt_no_body = FALSE; /* this is implied */ in setopt_long()
367 data->set.method = HTTPREQ_GET; in setopt_long()
374 data->set.get_filetime = enabled; in setopt_long()
382 data->set.server_response_timeout = (unsigned int)arg * 1000; in setopt_long()
392 data->set.server_response_timeout = (unsigned int)arg; in setopt_long()
402 data->set.tftp_no_options = enabled; in setopt_long()
412 data->set.tftp_blksize = arg; in setopt_long()
422 data->set.use_netrc = (unsigned char)arg; in setopt_long()
432 data->set.prefer_ascii = enabled; in setopt_long()
441 data->set.timecondition = (unsigned char)(curl_TimeCond)arg; in setopt_long()
448 data->set.timevalue = (time_t)arg; in setopt_long()
461 struct ssl_primary_config *primary = &data->set.ssl.primary; in setopt_long()
464 primary = &data->set.proxy_ssl.primary; in setopt_long()
492 if(data->set.postfieldsize < arg && in setopt_long()
493 data->set.postfields == data->set.str[STRING_COPYPOSTFIELDS]) { in setopt_long()
495 Curl_safefree(data->set.str[STRING_COPYPOSTFIELDS]); in setopt_long()
496 data->set.postfields = NULL; in setopt_long()
499 data->set.postfieldsize = arg; in setopt_long()
510 data->set.cookiesession = enabled; in setopt_long()
517 data->set.http_auto_referer = enabled; in setopt_long()
521 data->set.http_transfer_encoding = enabled; in setopt_long()
528 data->set.http_follow_location = enabled; in setopt_long()
536 data->set.allow_auth_to_other_hosts = enabled; in setopt_long()
546 data->set.maxredirs = arg; in setopt_long()
563 data->set.keep_post = arg & CURL_REDIR_POST_ALL; in setopt_long()
571 data->set.method = HTTPREQ_POST; in setopt_long()
572 data->set.opt_no_body = FALSE; /* this is implied */ in setopt_long()
575 data->set.method = HTTPREQ_GET; in setopt_long()
581 data->set.sep_headers = !!(arg & CURLHEADER_SEPARATE); in setopt_long()
591 data->set.method = HTTPREQ_GET; in setopt_long()
592 data->set.opt_no_body = FALSE; /* this is implied */ in setopt_long()
633 data->set.httpwant = (unsigned char)arg; in setopt_long()
643 data->set.expect_100_timeout = arg; in setopt_long()
647 data->set.http09_allowed = enabled; in setopt_long()
653 data->set.mime_formescape = !!(arg & CURLMIMEOPT_FORMESCAPE); in setopt_long()
661 data->set.tunnel_thru_httpproxy = enabled; in setopt_long()
670 data->set.proxyport = (unsigned short)arg; in setopt_long()
682 data->set.proxytype = (unsigned char)(curl_proxytype)arg; in setopt_long()
692 data->set.proxy_transfer_mode = (bool)uarg; in setopt_long()
695 if(data->set.socks5auth & ~(CURLAUTH_BASIC | CURLAUTH_GSSAPI)) in setopt_long()
697 data->set.socks5auth = (unsigned char)uarg; in setopt_long()
703 data->set.haproxyprotocol = enabled; in setopt_long()
709 data->set.proxy_ssl.primary.verifypeer = enabled; in setopt_long()
718 data->set.proxy_ssl.primary.verifyhost = enabled; in setopt_long()
730 data->set.socks5_gssapi_nec = enabled; in setopt_long()
739 data->set.list_only = enabled; in setopt_long()
747 data->set.remote_append = enabled; in setopt_long()
757 data->set.ftp_filemethod = (unsigned char)arg; in setopt_long()
760 data->set.ftp_use_eprt = enabled; in setopt_long()
764 data->set.ftp_use_epsv = enabled; in setopt_long()
768 data->set.ftp_use_pret = enabled; in setopt_long()
774 data->set.ftp_ccc = (unsigned char)arg; in setopt_long()
782 data->set.ftp_skip_ip = enabled; in setopt_long()
791 data->set.ftpsslauth = (unsigned char)(curl_ftpauth)arg; in setopt_long()
799 data->set.accepttimeout = (unsigned int)uarg; in setopt_long()
802 data->set.wildcard_enabled = enabled; in setopt_long()
814 data->set.ftp_create_missing_dirs = (unsigned char)arg; in setopt_long()
824 data->set.filesize = arg; in setopt_long()
833 data->set.low_speed_limit = arg; in setopt_long()
842 data->set.low_speed_time = arg; in setopt_long()
850 data->set.use_port = (unsigned short)arg; in setopt_long()
858 data->set.timeout = (unsigned int)arg * 1000; in setopt_long()
866 data->set.timeout = (unsigned int)uarg; in setopt_long()
874 data->set.connecttimeout = (unsigned int)arg * 1000; in setopt_long()
882 data->set.connecttimeout = (unsigned int)uarg; in setopt_long()
891 data->set.set_resume_from = arg; in setopt_long()
898 data->set.crlf = enabled; in setopt_long()
908 data->set.localport = curlx_sltous(arg); in setopt_long()
916 data->set.localportrange = curlx_sltous(arg); in setopt_long()
924 data->set.gssapi_delegation = (unsigned char)uarg& in setopt_long()
931 data->set.ssl.primary.verifypeer = enabled; in setopt_long()
941 data->set.doh_verifypeer = enabled; in setopt_long()
947 data->set.doh_verifyhost = enabled; in setopt_long()
956 data->set.doh_verifystatus = enabled; in setopt_long()
967 data->set.ssl.primary.verifyhost = enabled; in setopt_long()
979 data->set.ssl.primary.verifystatus = enabled; in setopt_long()
991 data->set.ssl.falsestart = enabled; in setopt_long()
996 data->set.ssl.certinfo = enabled; in setopt_long()
1013 data->set.buffer_size = (unsigned int)arg; in setopt_long()
1026 data->set.upload_buffer_size = (unsigned int)arg; in setopt_long()
1034 data->set.no_signal = enabled; in setopt_long()
1042 data->set.max_filesize = arg; in setopt_long()
1052 data->set.use_ssl = (unsigned char)arg; in setopt_long()
1055 data->set.ssl.primary.ssl_options = (unsigned char)(arg & 0xff); in setopt_long()
1056 data->set.ssl.enable_beast = !!(arg & CURLSSLOPT_ALLOW_BEAST); in setopt_long()
1057 data->set.ssl.no_revoke = !!(arg & CURLSSLOPT_NO_REVOKE); in setopt_long()
1058 data->set.ssl.no_partialchain = !!(arg & CURLSSLOPT_NO_PARTIALCHAIN); in setopt_long()
1059 data->set.ssl.revoke_best_effort = !!(arg & CURLSSLOPT_REVOKE_BEST_EFFORT); in setopt_long()
1060 data->set.ssl.native_ca_store = !!(arg & CURLSSLOPT_NATIVE_CA); in setopt_long()
1061 data->set.ssl.auto_client_cert = !!(arg & CURLSSLOPT_AUTO_CLIENT_CERT); in setopt_long()
1062 data->set.ssl.earlydata = !!(arg & CURLSSLOPT_EARLYDATA); in setopt_long()
1069 data->set.proxy_ssl.primary.ssl_options = (unsigned char)(arg & 0xff); in setopt_long()
1070 data->set.proxy_ssl.enable_beast = !!(arg & CURLSSLOPT_ALLOW_BEAST); in setopt_long()
1071 data->set.proxy_ssl.no_revoke = !!(arg & CURLSSLOPT_NO_REVOKE); in setopt_long()
1072 data->set.proxy_ssl.no_partialchain = !!(arg & CURLSSLOPT_NO_PARTIALCHAIN); in setopt_long()
1073 data->set.proxy_ssl.revoke_best_effort = in setopt_long()
1075 data->set.proxy_ssl.native_ca_store = !!(arg & CURLSSLOPT_NATIVE_CA); in setopt_long()
1076 data->set.proxy_ssl.auto_client_cert = in setopt_long()
1085 data->set.ipver = (unsigned char) arg; in setopt_long()
1092 data->set.tcp_nodelay = enabled; in setopt_long()
1096 data->set.ignorecl = enabled; in setopt_long()
1107 data->set.connect_only = (unsigned char)arg; in setopt_long()
1111 data->set.ssl.primary.cache_session = enabled; in setopt_long()
1113 data->set.proxy_ssl.primary.cache_session = in setopt_long()
1114 data->set.ssl.primary.cache_session; in setopt_long()
1121 data->set.ssh_auth_types = (int)arg; in setopt_long()
1124 data->set.ssh_compression = enabled; in setopt_long()
1133 data->set.http_te_skip = !enabled; /* reversed */ in setopt_long()
1143 data->set.http_ce_skip = !enabled; /* reversed */ in setopt_long()
1153 data->set.new_file_perms = (unsigned int)arg; in setopt_long()
1163 data->set.new_directory_perms = (unsigned int)arg; in setopt_long()
1177 data->set.scope_id = (unsigned int)uarg; in setopt_long()
1185 data->set.allowed_protocols = (curl_prot_t)arg; in setopt_long()
1192 data->set.redir_protocols = (curl_prot_t)arg; in setopt_long()
1198 data->set.mail_rcpt_allowfails = enabled; in setopt_long()
1203 data->set.sasl_ir = enabled; in setopt_long()
1261 data->set.rtspreq = rtspreq; in setopt_long()
1281 data->set.tcp_keepalive = enabled; in setopt_long()
1288 data->set.tcp_keepidle = (int)arg; in setopt_long()
1295 data->set.tcp_keepintvl = (int)arg; in setopt_long()
1302 data->set.tcp_keepcnt = (int)arg; in setopt_long()
1307 data->set.tcp_fastopen = enabled; in setopt_long()
1315 data->set.ssl_enable_alpn = enabled; in setopt_long()
1318 data->set.path_as_is = enabled; in setopt_long()
1321 data->set.pipewait = enabled; in setopt_long()
1326 data->set.priority.weight = (int)arg; in setopt_long()
1332 data->set.suppress_connect_headers = enabled; in setopt_long()
1337 data->set.happy_eyeballs_timeout = (unsigned int)uarg; in setopt_long()
1341 data->set.dns_shuffle_addresses = enabled; in setopt_long()
1345 data->set.disallow_username_in_url = enabled; in setopt_long()
1351 data->set.upkeep_interval_ms = arg; in setopt_long()
1356 data->set.maxage_conn = arg; in setopt_long()
1361 data->set.maxlifetime_conn = arg; in setopt_long()
1391 data->set.ws_raw_mode = (bool)(arg & CURLWS_RAW_MODE); in setopt_long()
1395 data->set.quick_exit = enabled; in setopt_long()
1404 Curl_safefree(data->set.str[STRING_SSL_ENGINE]); in setopt_long()
1431 data->set.proxyheaders = slist; in setopt_slist()
1439 data->set.http200aliases = slist; in setopt_slist()
1447 data->set.postquote = slist; in setopt_slist()
1453 data->set.prequote = slist; in setopt_slist()
1459 data->set.quote = slist; in setopt_slist()
1476 data->set.resolve = slist; in setopt_slist()
1477 data->state.resolve = data->set.resolve; in setopt_slist()
1484 data->set.headers = slist; in setopt_slist()
1492 data->set.telnet_options = slist; in setopt_slist()
1498 data->set.mail_rcpt = slist; in setopt_slist()
1502 data->set.connect_to = slist; in setopt_slist()
1522 data->set.httppost = va_arg(param, struct curl_httppost *); in setopt_pointers()
1523 data->set.method = HTTPREQ_POST_FORM; in setopt_pointers()
1524 data->set.opt_no_body = FALSE; /* this is implied */ in setopt_pointers()
1538 result = Curl_mime_set_subparts(&data->set.mimepost, in setopt_pointers()
1542 data->set.method = HTTPREQ_POST_MIME; in setopt_pointers()
1543 data->set.opt_no_body = FALSE; /* this is implied */ in setopt_pointers()
1558 data->set.err = va_arg(param, FILE *); in setopt_pointers()
1559 if(!data->set.err) in setopt_pointers()
1560 data->set.err = stderr; in setopt_pointers()
1564 struct Curl_share *set = va_arg(param, struct Curl_share *); in setopt_pointers() local
1599 if(GOOD_SHARE_HANDLE(set)) in setopt_pointers()
1601 data->share = set; in setopt_pointers()
1669 return Curl_setstropt(&data->set.str[STRING_SSL_CIPHER_LIST], ptr); in setopt_cptr()
1676 return Curl_setstropt(&data->set.str[STRING_SSL_CIPHER_LIST_PROXY], in setopt_cptr()
1686 return Curl_setstropt(&data->set.str[STRING_SSL_CIPHER13_LIST], ptr); in setopt_cptr()
1695 return Curl_setstropt(&data->set.str[STRING_SSL_CIPHER13_LIST_PROXY], in setopt_cptr()
1706 return Curl_setstropt(&data->set.str[STRING_TARGET], ptr); in setopt_cptr()
1712 return Curl_setstropt(&data->set.str[STRING_NETRC_FILE], ptr); in setopt_cptr()
1722 if(!ptr || data->set.postfieldsize == -1) in setopt_cptr()
1723 result = Curl_setstropt(&data->set.str[STRING_COPYPOSTFIELDS], ptr); in setopt_cptr()
1725 if(data->set.postfieldsize < 0) in setopt_cptr()
1731 else if(data->set.postfieldsize > SIZE_T_MAX) in setopt_cptr()
1740 char *p = Curl_memdup0(ptr, (size_t)data->set.postfieldsize); in setopt_cptr()
1744 free(data->set.str[STRING_COPYPOSTFIELDS]); in setopt_cptr()
1745 data->set.str[STRING_COPYPOSTFIELDS] = p; in setopt_cptr()
1750 data->set.postfields = data->set.str[STRING_COPYPOSTFIELDS]; in setopt_cptr()
1751 data->set.method = HTTPREQ_POST; in setopt_cptr()
1758 data->set.postfields = ptr; in setopt_cptr()
1760 Curl_safefree(data->set.str[STRING_COPYPOSTFIELDS]); in setopt_cptr()
1761 data->set.method = HTTPREQ_POST; in setopt_cptr()
1779 return Curl_setstropt(&data->set.str[STRING_ENCODING], all); in setopt_cptr()
1781 return Curl_setstropt(&data->set.str[STRING_ENCODING], ptr); in setopt_cptr()
1789 result = Curl_setstropt(&data->set.str[STRING_AWS_SIGV4], ptr); in setopt_cptr()
1793 if(data->set.str[STRING_AWS_SIGV4]) in setopt_cptr()
1794 data->set.httpauth = CURLAUTH_AWS_SIGV4; in setopt_cptr()
1805 result = Curl_setstropt(&data->set.str[STRING_SET_REFERER], ptr); in setopt_cptr()
1806 data->state.referer = data->set.str[STRING_SET_REFERER]; in setopt_cptr()
1813 return Curl_setstropt(&data->set.str[STRING_USERAGENT], ptr); in setopt_cptr()
1820 return Curl_setstropt(&data->set.str[STRING_COOKIE], ptr); in setopt_cptr()
1861 result = Curl_setstropt(&data->set.str[STRING_COOKIEJAR], ptr); in setopt_cptr()
1868 Curl_cookie_init(data, NULL, data->cookies, data->set.cookiesession); in setopt_cptr()
1932 return Curl_setstropt(&data->set.str[STRING_CUSTOMREQUEST], ptr); in setopt_cptr()
1951 return Curl_setstropt(&data->set.str[STRING_PROXY], ptr); in setopt_cptr()
1961 return Curl_setstropt(&data->set.str[STRING_PRE_PROXY], ptr); in setopt_cptr()
1970 return Curl_setstropt(&data->set.str[STRING_PROXY_SERVICE_NAME], ptr); in setopt_cptr()
1976 return Curl_setstropt(&data->set.str[STRING_SERVICE_NAME], ptr); in setopt_cptr()
1983 data->set.writeheader = (void *)ptr; in setopt_cptr()
1990 data->set.in_set = (void *)ptr; in setopt_cptr()
1997 data->set.out = (void *)ptr; in setopt_cptr()
2004 data->set.debugdata = (void *)ptr; in setopt_cptr()
2010 data->set.progress_client = (void *)ptr; in setopt_cptr()
2016 data->set.seek_client = (void *)ptr; in setopt_cptr()
2022 data->set.ioctl_client = (void *)ptr; in setopt_cptr()
2030 data->set.ssl.fsslctxp = (void *)ptr; in setopt_cptr()
2039 data->set.sockopt_client = (void *)ptr; in setopt_cptr()
2045 data->set.opensocket_client = (void *)ptr; in setopt_cptr()
2051 data->set.resolver_start_client = (void *)ptr; in setopt_cptr()
2057 data->set.closesocket_client = (void *)ptr; in setopt_cptr()
2061 data->set.trailer_data = (void *)ptr; in setopt_cptr()
2065 data->set.prereq_userp = (void *)ptr; in setopt_cptr()
2073 data->set.errorbuffer = ptr; in setopt_cptr()
2081 result = Curl_setstropt(&data->set.str[STRING_FTPPORT], ptr); in setopt_cptr()
2082 data->set.ftp_use_port = !!(data->set.str[STRING_FTPPORT]); in setopt_cptr()
2086 return Curl_setstropt(&data->set.str[STRING_FTP_ACCOUNT], ptr); in setopt_cptr()
2089 return Curl_setstropt(&data->set.str[STRING_FTP_ALTERNATIVE_TO_USER], ptr); in setopt_cptr()
2096 result = Curl_setstropt(&data->set.str[STRING_KRB_LEVEL], ptr); in setopt_cptr()
2097 data->set.krb = !!(data->set.str[STRING_KRB_LEVEL]); in setopt_cptr()
2110 result = Curl_setstropt(&data->set.str[STRING_SET_URL], ptr); in setopt_cptr()
2111 data->state.url = data->set.str[STRING_SET_URL]; in setopt_cptr()
2118 return setstropt_userpwd(ptr, &data->set.str[STRING_USERNAME], in setopt_cptr()
2119 &data->set.str[STRING_PASSWORD]); in setopt_cptr()
2125 return Curl_setstropt(&data->set.str[STRING_USERNAME], ptr); in setopt_cptr()
2131 return Curl_setstropt(&data->set.str[STRING_PASSWORD], ptr); in setopt_cptr()
2137 return Curl_setstropt(&data->set.str[STRING_OPTIONS], ptr); in setopt_cptr()
2143 return Curl_setstropt(&data->set.str[STRING_BEARER], ptr); in setopt_cptr()
2156 result = Curl_urldecode(u, 0, &data->set.str[STRING_PROXYUSERNAME], NULL, in setopt_cptr()
2159 result = Curl_urldecode(p, 0, &data->set.str[STRING_PROXYPASSWORD], NULL, in setopt_cptr()
2169 return Curl_setstropt(&data->set.str[STRING_PROXYUSERNAME], ptr); in setopt_cptr()
2175 return Curl_setstropt(&data->set.str[STRING_PROXYPASSWORD], ptr); in setopt_cptr()
2181 return Curl_setstropt(&data->set.str[STRING_NOPROXY], ptr); in setopt_cptr()
2188 return Curl_setstropt(&data->set.str[STRING_SET_RANGE], ptr); in setopt_cptr()
2194 data->set.uh = (CURLU *)ptr; in setopt_cptr()
2200 return Curl_setstropt(&data->set.str[STRING_CERT], ptr); in setopt_cptr()
2207 return Curl_setstropt(&data->set.str[STRING_CERT_PROXY], ptr); in setopt_cptr()
2214 return Curl_setstropt(&data->set.str[STRING_CERT_TYPE], ptr); in setopt_cptr()
2221 return Curl_setstropt(&data->set.str[STRING_CERT_TYPE_PROXY], ptr); in setopt_cptr()
2227 return Curl_setstropt(&data->set.str[STRING_KEY], ptr); in setopt_cptr()
2234 return Curl_setstropt(&data->set.str[STRING_KEY_PROXY], ptr); in setopt_cptr()
2241 return Curl_setstropt(&data->set.str[STRING_KEY_TYPE], ptr); in setopt_cptr()
2248 return Curl_setstropt(&data->set.str[STRING_KEY_TYPE_PROXY], ptr); in setopt_cptr()
2255 return Curl_setstropt(&data->set.str[STRING_KEY_PASSWD], ptr); in setopt_cptr()
2262 return Curl_setstropt(&data->set.str[STRING_KEY_PASSWD_PROXY], ptr); in setopt_cptr()
2269 result = Curl_setstropt(&data->set.str[STRING_SSL_ENGINE], ptr); in setopt_cptr()
2281 result = Curl_setstropt(&data->set.str[STRING_HAPROXY_CLIENT_IP], ptr); in setopt_cptr()
2283 data->set.haproxyprotocol = TRUE; in setopt_cptr()
2292 &data->set.str[STRING_DEVICE], in setopt_cptr()
2293 &data->set.str[STRING_INTERFACE], in setopt_cptr()
2294 &data->set.str[STRING_BINDHOST]); in setopt_cptr()
2303 return Curl_setstropt(&data->set.str[STRING_SSL_PINNEDPUBLICKEY], ptr); in setopt_cptr()
2315 return Curl_setstropt(&data->set.str[STRING_SSL_PINNEDPUBLICKEY_PROXY], in setopt_cptr()
2324 return Curl_setstropt(&data->set.str[STRING_SSL_CAFILE], ptr); in setopt_cptr()
2332 return Curl_setstropt(&data->set.str[STRING_SSL_CAFILE_PROXY], ptr); in setopt_cptr()
2343 return Curl_setstropt(&data->set.str[STRING_SSL_CAPATH], ptr); in setopt_cptr()
2355 return Curl_setstropt(&data->set.str[STRING_SSL_CAPATH_PROXY], ptr); in setopt_cptr()
2364 return Curl_setstropt(&data->set.str[STRING_SSL_CRLFILE], ptr); in setopt_cptr()
2372 return Curl_setstropt(&data->set.str[STRING_SSL_CRLFILE_PROXY], ptr); in setopt_cptr()
2379 return Curl_setstropt(&data->set.str[STRING_SSL_ISSUERCERT], ptr); in setopt_cptr()
2387 return Curl_setstropt(&data->set.str[STRING_SSL_ISSUERCERT_PROXY], ptr); in setopt_cptr()
2395 data->set.private_data = (void *)ptr; in setopt_cptr()
2404 return Curl_setstropt(&data->set.str[STRING_SSL_EC_CURVES], ptr); in setopt_cptr()
2411 return Curl_setstropt(&data->set.str[STRING_SSH_PUBLIC_KEY], ptr); in setopt_cptr()
2417 return Curl_setstropt(&data->set.str[STRING_SSH_PRIVATE_KEY], ptr); in setopt_cptr()
2424 return Curl_setstropt(&data->set.str[STRING_SSH_HOST_PUBLIC_KEY_MD5], ptr); in setopt_cptr()
2430 return Curl_setstropt(&data->set.str[STRING_SSH_KNOWNHOSTS], ptr); in setopt_cptr()
2436 data->set.ssh_keyfunc_userp = (void *)ptr; in setopt_cptr()
2444 return Curl_setstropt(&data->set.str[STRING_SSH_HOST_PUBLIC_KEY_SHA256], in setopt_cptr()
2451 data->set.ssh_hostkeyfunc_userp = (void *)ptr; in setopt_cptr()
2457 return protocol2num(ptr, &data->set.allowed_protocols); in setopt_cptr()
2459 data->set.allowed_protocols = (curl_prot_t) CURLPROTO_ALL; in setopt_cptr()
2464 return protocol2num(ptr, &data->set.redir_protocols); in setopt_cptr()
2466 data->set.redir_protocols = (curl_prot_t) CURLPROTO_REDIR; in setopt_cptr()
2471 return Curl_setstropt(&data->set.str[STRING_DEFAULT_PROTOCOL], ptr); in setopt_cptr()
2476 return Curl_setstropt(&data->set.str[STRING_MAIL_FROM], ptr); in setopt_cptr()
2480 return Curl_setstropt(&data->set.str[STRING_MAIL_AUTH], ptr); in setopt_cptr()
2485 return Curl_setstropt(&data->set.str[STRING_SASL_AUTHZID], ptr); in setopt_cptr()
2493 return Curl_setstropt(&data->set.str[STRING_RTSP_SESSION_ID], ptr); in setopt_cptr()
2500 return Curl_setstropt(&data->set.str[STRING_RTSP_STREAM_URI], ptr); in setopt_cptr()
2507 return Curl_setstropt(&data->set.str[STRING_RTSP_TRANSPORT], ptr); in setopt_cptr()
2510 data->set.rtp_out = (void *)ptr; in setopt_cptr()
2515 data->set.wildcardptr = (void *)ptr; in setopt_cptr()
2518 data->set.fnmatch_data = (void *)ptr; in setopt_cptr()
2523 return Curl_setstropt(&data->set.str[STRING_TLSAUTH_USERNAME], ptr); in setopt_cptr()
2527 return Curl_setstropt(&data->set.str[STRING_TLSAUTH_USERNAME_PROXY], ptr); in setopt_cptr()
2531 return Curl_setstropt(&data->set.str[STRING_TLSAUTH_PASSWORD], ptr); in setopt_cptr()
2535 return Curl_setstropt(&data->set.str[STRING_TLSAUTH_PASSWORD_PROXY], ptr); in setopt_cptr()
2550 result = Curl_setstropt(&data->set.str[STRING_DNS_SERVERS], ptr); in setopt_cptr()
2553 return Curl_set_dns_servers(data, data->set.str[STRING_DNS_SERVERS]); in setopt_cptr()
2556 result = Curl_setstropt(&data->set.str[STRING_DNS_INTERFACE], ptr); in setopt_cptr()
2559 return Curl_set_dns_interface(data, data->set.str[STRING_DNS_INTERFACE]); in setopt_cptr()
2562 result = Curl_setstropt(&data->set.str[STRING_DNS_LOCAL_IP4], ptr); in setopt_cptr()
2565 return Curl_set_dns_local_ip4(data, data->set.str[STRING_DNS_LOCAL_IP4]); in setopt_cptr()
2568 result = Curl_setstropt(&data->set.str[STRING_DNS_LOCAL_IP6], ptr); in setopt_cptr()
2571 return Curl_set_dns_local_ip6(data, data->set.str[STRING_DNS_LOCAL_IP6]); in setopt_cptr()
2576 data->set.abstract_unix_socket = FALSE; in setopt_cptr()
2577 return Curl_setstropt(&data->set.str[STRING_UNIX_SOCKET_PATH], ptr); in setopt_cptr()
2580 data->set.abstract_unix_socket = TRUE; in setopt_cptr()
2581 return Curl_setstropt(&data->set.str[STRING_UNIX_SOCKET_PATH], ptr); in setopt_cptr()
2587 result = Curl_setstropt(&data->set.str[STRING_DOH], ptr); in setopt_cptr()
2588 data->set.doh = !!(data->set.str[STRING_DOH]); in setopt_cptr()
2593 data->set.hsts_read_userp = (void *)ptr; in setopt_cptr()
2596 data->set.hsts_write_userp = (void *)ptr; in setopt_cptr()
2606 result = Curl_setstropt(&data->set.str[STRING_HSTS], ptr); in setopt_cptr()
2638 result = Curl_setstropt(&data->set.str[STRING_ALTSVC], ptr); in setopt_cptr()
2650 data->set.tls_ech = CURLECH_DISABLE; in setopt_cptr()
2655 data->set.tls_ech = CURLECH_DISABLE; in setopt_cptr()
2660 data->set.tls_ech = CURLECH_DISABLE | in setopt_cptr()
2661 (data->set.tls_ech & CURLECH_CLA_CFG); in setopt_cptr()
2663 data->set.tls_ech = CURLECH_GREASE | in setopt_cptr()
2664 (data->set.tls_ech & CURLECH_CLA_CFG); in setopt_cptr()
2666 data->set.tls_ech = CURLECH_ENABLE | in setopt_cptr()
2667 (data->set.tls_ech & CURLECH_CLA_CFG); in setopt_cptr()
2669 data->set.tls_ech = CURLECH_HARD | in setopt_cptr()
2670 (data->set.tls_ech & CURLECH_CLA_CFG); in setopt_cptr()
2672 result = Curl_setstropt(&data->set.str[STRING_ECH_CONFIG], ptr + 4); in setopt_cptr()
2675 data->set.tls_ech |= CURLECH_CLA_CFG; in setopt_cptr()
2678 result = Curl_setstropt(&data->set.str[STRING_ECH_PUBLIC], ptr + 3); in setopt_cptr()
2699 data->set.fprogress = va_arg(param, curl_progress_callback); in setopt_func()
2700 if(data->set.fprogress) in setopt_func()
2710 data->set.fxferinfo = va_arg(param, curl_xferinfo_callback); in setopt_func()
2711 if(data->set.fxferinfo) in setopt_func()
2721 data->set.fdebug = va_arg(param, curl_debug_callback); in setopt_func()
2730 data->set.fwrite_header = va_arg(param, curl_write_callback); in setopt_func()
2736 data->set.fwrite_func = va_arg(param, curl_write_callback); in setopt_func()
2737 if(!data->set.fwrite_func) in setopt_func()
2739 data->set.fwrite_func = (curl_write_callback)fwrite; in setopt_func()
2745 data->set.fread_func_set = va_arg(param, curl_read_callback); in setopt_func()
2746 if(!data->set.fread_func_set) { in setopt_func()
2747 data->set.is_fread_set = 0; in setopt_func()
2749 data->set.fread_func_set = (curl_read_callback)fread; in setopt_func()
2752 data->set.is_fread_set = 1; in setopt_func()
2758 data->set.seek_func = va_arg(param, curl_seek_callback); in setopt_func()
2764 data->set.ioctl_func = va_arg(param, curl_ioctl_callback); in setopt_func()
2772 data->set.ssl.fsslctx = va_arg(param, curl_ssl_ctx_callback); in setopt_func()
2782 data->set.fsockopt = va_arg(param, curl_sockopt_callback); in setopt_func()
2790 data->set.fopensocket = va_arg(param, curl_opensocket_callback); in setopt_func()
2798 data->set.fclosesocket = va_arg(param, curl_closesocket_callback); in setopt_func()
2806 data->set.resolver_start = va_arg(param, curl_resolver_start_callback); in setopt_func()
2814 data->set.ssh_hostkeyfunc = va_arg(param, curl_sshhostkeycallback); in setopt_func()
2821 data->set.ssh_keyfunc = va_arg(param, curl_sshkeycallback); in setopt_func()
2829 data->set.fwrite_rtp = va_arg(param, curl_write_callback); in setopt_func()
2834 data->set.chunk_bgn = va_arg(param, curl_chunk_bgn_callback); in setopt_func()
2837 data->set.chunk_end = va_arg(param, curl_chunk_end_callback); in setopt_func()
2840 data->set.fnmatch = va_arg(param, curl_fnmatch_callback); in setopt_func()
2845 data->set.trailer_callback = va_arg(param, curl_trailer_callback); in setopt_func()
2850 data->set.hsts_read = va_arg(param, curl_hstsread_callback); in setopt_func()
2853 data->set.hsts_write = va_arg(param, curl_hstswrite_callback); in setopt_func()
2857 data->set.fprereq = va_arg(param, curl_prereq_callback); in setopt_func()
2874 data->set.timevalue = (time_t)offt; in setopt_offt()
2886 if(data->set.postfieldsize < offt && in setopt_offt()
2887 data->set.postfields == data->set.str[STRING_COPYPOSTFIELDS]) { in setopt_offt()
2889 Curl_safefree(data->set.str[STRING_COPYPOSTFIELDS]); in setopt_offt()
2890 data->set.postfields = NULL; in setopt_offt()
2892 data->set.postfieldsize = offt; in setopt_offt()
2901 data->set.filesize = offt; in setopt_offt()
2910 data->set.max_send_speed = offt; in setopt_offt()
2919 data->set.max_recv_speed = offt; in setopt_offt()
2927 data->set.set_resume_from = offt; in setopt_offt()
2935 data->set.max_filesize = offt; in setopt_offt()
2952 return Curl_setblobopt(&data->set.blobs[BLOB_CERT], blob); in setopt_blob()
2958 return Curl_setblobopt(&data->set.blobs[BLOB_CERT_PROXY], blob); in setopt_blob()
2963 return Curl_setblobopt(&data->set.blobs[BLOB_KEY_PROXY], blob); in setopt_blob()
2971 return Curl_setblobopt(&data->set.blobs[BLOB_CAINFO_PROXY], blob); in setopt_blob()
2978 return Curl_setblobopt(&data->set.blobs[BLOB_SSL_ISSUERCERT_PROXY], in setopt_blob()
2985 return Curl_setblobopt(&data->set.blobs[BLOB_KEY], blob); in setopt_blob()
2993 return Curl_setblobopt(&data->set.blobs[BLOB_CAINFO], blob); in setopt_blob()
3000 return Curl_setblobopt(&data->set.blobs[BLOB_SSL_ISSUERCERT], blob); in setopt_blob()