• Home
  • Raw
  • Download

Lines Matching refs:config

544                             struct OperationConfig *config)  in getparameter()  argument
656 GetStr(&config->dns_ipv4_addr, nextarg); in getparameter()
660 GetStr(&config->dns_ipv6_addr, nextarg); in getparameter()
663 GetStr(&config->random_file, nextarg); in getparameter()
666 GetStr(&config->egd_file, nextarg); in getparameter()
669 GetStr(&config->oauth_bearer, nextarg); in getparameter()
670 config->authtype |= CURLAUTH_BEARER; in getparameter()
673 err = str2udouble(&config->connecttimeout, nextarg, in getparameter()
679 GetStr(&config->doh_url, nextarg); in getparameter()
682 GetStr(&config->cipher_list, nextarg); in getparameter()
686 GetStr(&config->dns_interface, nextarg); in getparameter()
689 config->disable_epsv = toggle; in getparameter()
692 config->disallow_username_in_url = toggle; in getparameter()
695 config->disable_epsv = (!toggle)?TRUE:FALSE; in getparameter()
699 GetStr(&config->dns_servers, nextarg); in getparameter()
708 config->nonpn = (!toggle)?TRUE:FALSE; in getparameter()
718 config->noalpn = (!toggle)?TRUE:FALSE; in getparameter()
727 config->recvpersecond = value; in getparameter()
728 config->sendpersecond = value; in getparameter()
737 config->encoding = toggle; in getparameter()
741 config->tr_encoding = toggle; in getparameter()
746 config->authtype |= CURLAUTH_DIGEST; in getparameter()
748 config->authtype &= ~CURLAUTH_DIGEST; in getparameter()
754 config->authtype |= CURLAUTH_NEGOTIATE; in getparameter()
759 config->authtype &= ~CURLAUTH_NEGOTIATE; in getparameter()
765 config->authtype |= CURLAUTH_NTLM; in getparameter()
770 config->authtype &= ~CURLAUTH_NTLM; in getparameter()
776 config->authtype |= CURLAUTH_NTLM_WB; in getparameter()
781 config->authtype &= ~CURLAUTH_NTLM_WB; in getparameter()
786 config->authtype |= CURLAUTH_BASIC; in getparameter()
788 config->authtype &= ~CURLAUTH_BASIC; in getparameter()
793 config->authtype = CURLAUTH_ANY; in getparameter()
803 config->ftp_create_dirs = toggle; in getparameter()
807 config->create_dirs = toggle; in getparameter()
811 err = oct2nummax(&config->create_file_mode, nextarg, 0777); in getparameter()
819 err = str2num(&config->maxredirs, nextarg); in getparameter()
822 if(config->maxredirs < -1) in getparameter()
828 config->proxyntlm = toggle; in getparameter()
835 config->crlf = toggle; in getparameter()
839 config->authtype |= CURLAUTH_AWS_SIGV4; in getparameter()
840 GetStr(&config->aws_sigv4, nextarg); in getparameter()
860 GetStr(&config->iface, nextarg); in getparameter()
865 GetStr(&config->krblevel, nextarg); in getparameter()
870 config->haproxy_protocol = toggle; in getparameter()
880 config->max_filesize = value; in getparameter()
884 config->disable_eprt = toggle; in getparameter()
887 config->disable_eprt = (!toggle)?TRUE:FALSE; in getparameter()
890 config->xattr = toggle; in getparameter()
896 if(!config->url_get) in getparameter()
897 config->url_get = config->url_list; in getparameter()
899 if(config->url_get) { in getparameter()
902 while(config->url_get && (config->url_get->flags & GETOUT_URL)) in getparameter()
903 config->url_get = config->url_get->next; in getparameter()
908 if(config->url_get) in getparameter()
910 url = config->url_get; in getparameter()
913 config->url_get = url = new_getout(config); in getparameter()
929 config->ftp_ssl = toggle; in getparameter()
932 Curl_safefree(config->ftpport); in getparameter()
936 GetStr(&config->proxy, nextarg); in getparameter()
937 config->proxyver = CURLPROXY_SOCKS5; in getparameter()
940 GetStr(&config->proxy, nextarg); in getparameter()
941 config->proxyver = CURLPROXY_SOCKS4; in getparameter()
944 GetStr(&config->proxy, nextarg); in getparameter()
945 config->proxyver = CURLPROXY_SOCKS4A; in getparameter()
949 GetStr(&config->proxy, nextarg); in getparameter()
950 config->proxyver = CURLPROXY_SOCKS5_HOSTNAME; in getparameter()
953 config->tcp_nodelay = toggle; in getparameter()
956 config->proxydigest = toggle; in getparameter()
959 config->proxybasic = toggle; in getparameter()
962 err = str2unum(&config->req_retry, nextarg); in getparameter()
967 config->retry_connrefused = toggle; in getparameter()
970 err = str2unummax(&config->retry_delay, nextarg, LONG_MAX/1000); in getparameter()
975 err = str2unummax(&config->retry_maxtime, nextarg, LONG_MAX/1000); in getparameter()
980 config->retry_all_errors = toggle; in getparameter()
985 config->proxynegotiate = toggle; in getparameter()
991 GetStr(&config->ftp_account, nextarg); in getparameter()
994 config->proxyanyauth = toggle; in getparameter()
1000 config->ignorecl = toggle; in getparameter()
1003 config->ftp_skip_ip = toggle; in getparameter()
1006 config->ftp_filemethod = ftpfilemethod(config, nextarg); in getparameter()
1022 err = str2unum(&config->localport, nextarg); in getparameter()
1023 if(err || (config->localport > 65535)) in getparameter()
1026 config->localportrange = 1; /* default number of ports to try */ in getparameter()
1028 err = str2unum(&config->localportrange, lrange); in getparameter()
1029 if(err || (config->localportrange > 65535)) in getparameter()
1031 config->localportrange -= (config->localport-1); in getparameter()
1032 if(config->localportrange < 1) in getparameter()
1038 GetStr(&config->ftp_alternative_to_user, nextarg); in getparameter()
1043 config->ftp_ssl_reqd = toggle; in getparameter()
1046 config->disable_sessionid = (!toggle)?TRUE:FALSE; in getparameter()
1051 config->ftp_ssl_control = toggle; in getparameter()
1054 config->ftp_ssl_ccc = toggle; in getparameter()
1055 if(!config->ftp_ssl_ccc_mode) in getparameter()
1056 config->ftp_ssl_ccc_mode = CURLFTPSSL_CCC_PASSIVE; in getparameter()
1059 config->ftp_ssl_ccc = TRUE; in getparameter()
1060 config->ftp_ssl_ccc_mode = ftpcccmethod(config, nextarg); in getparameter()
1072 config->raw = toggle; in getparameter()
1075 config->post301 = toggle; in getparameter()
1078 config->nokeepalive = (!toggle)?TRUE:FALSE; in getparameter()
1081 err = str2unum(&config->alivetime, nextarg); in getparameter()
1086 config->post302 = toggle; in getparameter()
1089 config->post303 = toggle; in getparameter()
1093 GetStr(&config->noproxy, nextarg); in getparameter()
1096 config->socks5_gssapi_nec = toggle; in getparameter()
1100 GetStr(&config->proxy, nextarg); in getparameter()
1101 config->proxyver = CURLPROXY_HTTP_1_0; in getparameter()
1104 err = str2unum(&config->tftp_blksize, nextarg); in getparameter()
1109 GetStr(&config->mail_from, nextarg); in getparameter()
1113 err = add2list(&config->mail_rcpt, nextarg); in getparameter()
1118 config->ftp_pret = toggle; in getparameter()
1121 config->proto_present = TRUE; in getparameter()
1122 if(proto2num(config, &config->proto, nextarg)) in getparameter()
1126 config->proto_redir_present = TRUE; in getparameter()
1127 if(proto2num(config, &config->proto_redir, nextarg)) in getparameter()
1131 err = add2list(&config->resolve, nextarg); in getparameter()
1136 config->gssapi_delegation = delegation(config, nextarg); in getparameter()
1139 GetStr(&config->mail_auth, nextarg); in getparameter()
1145 GetStr(&config->sasl_authzid, nextarg); in getparameter()
1148 config->sasl_ir = toggle; in getparameter()
1158 config->abstract_unix_socket = FALSE; in getparameter()
1159 GetStr(&config->unix_socket_path, nextarg); in getparameter()
1162 config->path_as_is = toggle; in getparameter()
1165 GetStr(&config->proxy_service_name, nextarg); in getparameter()
1168 GetStr(&config->service_name, nextarg); in getparameter()
1171 GetStr(&config->proto_default, nextarg); in getparameter()
1172 err = check_protocol(config->proto_default); in getparameter()
1177 err = str2udouble(&config->expect100timeout, nextarg, LONG_MAX/1000); in getparameter()
1182 config->tftp_no_options = toggle; in getparameter()
1185 err = add2list(&config->connect_to, nextarg); in getparameter()
1190 config->abstract_unix_socket = TRUE; in getparameter()
1191 GetStr(&config->unix_socket_path, nextarg); in getparameter()
1194 err = str2tls_max(&config->ssl_version_max, nextarg); in getparameter()
1199 config->suppress_connect_headers = toggle; in getparameter()
1202 config->ssh_compression = toggle; in getparameter()
1205 err = str2unum(&config->happy_eyeballs_timeout_ms, nextarg); in getparameter()
1229 config->httpversion = CURL_HTTP_VERSION_1_0; in getparameter()
1233 config->httpversion = CURL_HTTP_VERSION_1_1; in getparameter()
1237 config->httpversion = CURL_HTTP_VERSION_2_0; in getparameter()
1241 config->httpversion = CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE; in getparameter()
1246 config->httpversion = CURL_HTTP_VERSION_3; in getparameter()
1252 config->http09_allowed = toggle; in getparameter()
1260 config->ssl_version = CURL_SSLVERSION_TLSv1; in getparameter()
1264 config->ssl_version = CURL_SSLVERSION_TLSv1_0; in getparameter()
1268 config->ssl_version = CURL_SSLVERSION_TLSv1_1; in getparameter()
1272 config->ssl_version = CURL_SSLVERSION_TLSv1_2; in getparameter()
1276 config->ssl_version = CURL_SSLVERSION_TLSv1_3; in getparameter()
1279 GetStr(&config->cipher13_list, nextarg); in getparameter()
1282 GetStr(&config->proxy_cipher13_list, nextarg); in getparameter()
1296 config->ip_version = CURL_IPRESOLVE_V4; in getparameter()
1300 config->ip_version = CURL_IPRESOLVE_V6; in getparameter()
1304 config->ftp_append = toggle; in getparameter()
1308 GetStr(&config->useragent, nextarg); in getparameter()
1314 GetStr(&config->altsvc, nextarg); in getparameter()
1320 GetStr(&config->hsts, nextarg); in getparameter()
1330 err = add2list(&config->cookies, nextarg); in getparameter()
1336 err = add2list(&config->cookiefiles, nextarg); in getparameter()
1343 config->use_ascii = toggle; in getparameter()
1347 GetStr(&config->cookiejar, nextarg); in getparameter()
1352 err = str2offset(&config->resume_from, nextarg); in getparameter()
1355 config->resume_from_current = FALSE; in getparameter()
1358 config->resume_from_current = TRUE; in getparameter()
1359 config->resume_from = 0; in getparameter()
1361 config->use_resume = TRUE; in getparameter()
1512 if(config->postfields) { in getparameter()
1515 char *oldpost = config->postfields; in getparameter()
1516 curl_off_t oldlen = config->postfieldsize; in getparameter()
1518 config->postfields = malloc((size_t)newlen); in getparameter()
1519 if(!config->postfields) { in getparameter()
1524 memcpy(config->postfields, oldpost, (size_t)oldlen); in getparameter()
1526 config->postfields[oldlen] = '\x26'; in getparameter()
1527 memcpy(&config->postfields[oldlen + 1], postdata, size); in getparameter()
1528 config->postfields[oldlen + 1 + size] = '\0'; in getparameter()
1531 config->postfieldsize += size + 1; in getparameter()
1534 config->postfields = postdata; in getparameter()
1535 config->postfieldsize = curlx_uztoso(size); in getparameter()
1550 GetStr(&config->headerfile, nextarg); in getparameter()
1558 config->autoreferer = TRUE; in getparameter()
1562 config->autoreferer = FALSE; in getparameter()
1564 GetStr(&config->referer, ptr); in getparameter()
1570 GetFileAndPassword(nextarg, &config->cert, &config->key_passwd); in getparameter()
1573 GetStr(&config->cacert, nextarg); in getparameter()
1576 GetStr(&config->cert_type, nextarg); in getparameter()
1579 GetStr(&config->key, nextarg); in getparameter()
1582 GetStr(&config->key_type, nextarg); in getparameter()
1585 GetStr(&config->key_passwd, nextarg); in getparameter()
1589 GetStr(&config->engine, nextarg); in getparameter()
1590 if(config->engine && curl_strequal(config->engine, "list")) in getparameter()
1594 GetStr(&config->capath, nextarg); in getparameter()
1597 GetStr(&config->pubkey, nextarg); in getparameter()
1600 GetStr(&config->hostpubmd5, nextarg); in getparameter()
1601 if(!config->hostpubmd5 || strlen(config->hostpubmd5) != 32) in getparameter()
1605 GetStr(&config->crlfile, nextarg); in getparameter()
1609 GetStr(&config->tls_username, nextarg); in getparameter()
1615 GetStr(&config->tls_password, nextarg); in getparameter()
1621 GetStr(&config->tls_authtype, nextarg); in getparameter()
1622 if(!curl_strequal(config->tls_authtype, "SRP")) in getparameter()
1630 config->ssl_allow_beast = toggle; in getparameter()
1635 config->ssl_auto_client_cert = toggle; in getparameter()
1640 config->proxy_ssl_auto_client_cert = toggle; in getparameter()
1644 GetStr(&config->pinnedpubkey, nextarg); in getparameter()
1648 GetStr(&config->proxy_pinnedpubkey, nextarg); in getparameter()
1652 config->verifystatus = TRUE; in getparameter()
1656 config->doh_verifystatus = TRUE; in getparameter()
1660 config->falsestart = TRUE; in getparameter()
1665 config->ssl_no_revoke = TRUE; in getparameter()
1670 config->ssl_revoke_best_effort = TRUE; in getparameter()
1674 config->tcp_fastopen = TRUE; in getparameter()
1679 GetStr(&config->proxy_tls_username, nextarg); in getparameter()
1686 GetStr(&config->proxy_tls_password, nextarg); in getparameter()
1693 GetStr(&config->proxy_tls_authtype, nextarg); in getparameter()
1694 if(!curl_strequal(config->proxy_tls_authtype, "SRP")) in getparameter()
1702 GetFileAndPassword(nextarg, &config->proxy_cert, in getparameter()
1703 &config->proxy_key_passwd); in getparameter()
1707 GetStr(&config->proxy_cert_type, nextarg); in getparameter()
1711 GetStr(&config->proxy_key, nextarg); in getparameter()
1715 GetStr(&config->proxy_key_type, nextarg); in getparameter()
1719 GetStr(&config->proxy_key_passwd, nextarg); in getparameter()
1724 GetStr(&config->proxy_cipher_list, nextarg); in getparameter()
1728 GetStr(&config->proxy_crlfile, nextarg); in getparameter()
1733 config->proxy_ssl_allow_beast = toggle; in getparameter()
1737 GetStr(&config->login_options, nextarg); in getparameter()
1741 GetStr(&config->proxy_cacert, nextarg); in getparameter()
1745 GetStr(&config->proxy_capath, nextarg); in getparameter()
1749 config->proxy_insecure_ok = toggle; in getparameter()
1754 config->proxy_ssl_version = CURL_SSLVERSION_TLSv1; in getparameter()
1760 config->socks5_auth |= CURLAUTH_BASIC; in getparameter()
1762 config->socks5_auth &= ~CURLAUTH_BASIC; in getparameter()
1768 config->socks5_auth |= CURLAUTH_GSSAPI; in getparameter()
1770 config->socks5_auth &= ~CURLAUTH_GSSAPI; in getparameter()
1774 GetStr(&config->etag_save_file, nextarg); in getparameter()
1778 GetStr(&config->etag_compare_file, nextarg); in getparameter()
1782 GetStr(&config->ssl_ec_curves, nextarg); in getparameter()
1798 config->mail_rcpt_allowfails = toggle; in getparameter()
1801 config->failwithbody = toggle; in getparameter()
1804 config->failonerror = toggle; in getparameter()
1807 if(config->failonerror && config->failwithbody) { in getparameter()
1808 errorf(config->global, "You must select either --fail or " in getparameter()
1816 if(formparse(config, in getparameter()
1818 &config->mimeroot, in getparameter()
1819 &config->mimecurrent, in getparameter()
1822 if(SetHTTPrequest(config, HTTPREQ_MIMEPOST, &config->httpreq)) in getparameter()
1827 config->globoff = toggle; in getparameter()
1832 GetStr(&config->request_target, nextarg); in getparameter()
1835 config->use_httpget = TRUE; in getparameter()
1867 err = add2list(&config->proxyheaders, h); in getparameter()
1869 err = add2list(&config->headers, h); in getparameter()
1884 err = add2list(&config->proxyheaders, nextarg); in getparameter()
1886 err = add2list(&config->headers, nextarg); in getparameter()
1892 if(config->content_disposition) { in getparameter()
1897 config->show_headers = toggle; /* show the headers as well in the in getparameter()
1901 config->cookiesession = toggle; in getparameter()
1904 config->no_body = toggle; in getparameter()
1905 config->show_headers = toggle; in getparameter()
1906 if(SetHTTPrequest(config, in getparameter()
1907 (config->no_body)?HTTPREQ_HEAD:HTTPREQ_GET, in getparameter()
1908 &config->httpreq)) in getparameter()
1912 if(config->show_headers) { in getparameter()
1917 config->content_disposition = toggle; in getparameter()
1921 config->doh_insecure_ok = toggle; in getparameter()
1923 config->insecure_ok = toggle; in getparameter()
1931 config->dirlistonly = toggle; /* only list the names of the FTP dir */ in getparameter()
1934 config->followlocation = toggle; /* Follow Location: HTTP headers */ in getparameter()
1939 config->unrestricted_auth = toggle; in getparameter()
1945 err = str2udouble(&config->timeout, nextarg, LONG_MAX/1000); in getparameter()
1963 config->netrc_opt = toggle; in getparameter()
1966 GetStr(&config->netrc_file, nextarg); in getparameter()
1971 config->netrc = toggle; in getparameter()
1979 config->nobuffer = (!toggle)?TRUE:FALSE; in getparameter()
1981 config->nobuffer = toggle; in getparameter()
1985 config->default_node_flags = toggle?GETOUT_USEREMOTE:0; in getparameter()
1989 GetStr(&config->output_dir, nextarg); in getparameter()
1997 if(!config->url_out) in getparameter()
1998 config->url_out = config->url_list; in getparameter()
1999 if(config->url_out) { in getparameter()
2002 while(config->url_out && (config->url_out->flags & GETOUT_OUTFILE)) in getparameter()
2003 config->url_out = config->url_out->next; in getparameter()
2008 if(config->url_out) in getparameter()
2010 url = config->url_out; in getparameter()
2013 config->url_out = url = new_getout(config); in getparameter()
2039 GetStr(&config->ftpport, nextarg); in getparameter()
2043 config->proxytunnel = toggle; in getparameter()
2055 err = add2list(&config->postquote, nextarg); in getparameter()
2060 err = add2list(&config->prequote, nextarg); in getparameter()
2063 err = add2list(&config->quote, nextarg); in getparameter()
2085 Curl_safefree(config->range); in getparameter()
2086 config->range = strdup(buffer); in getparameter()
2087 if(!config->range) in getparameter()
2104 GetStr(&config->range, nextarg); in getparameter()
2109 config->remote_time = toggle; in getparameter()
2129 err = add2list(&config->telnet_options, nextarg); in getparameter()
2137 if(!config->url_ul) in getparameter()
2138 config->url_ul = config->url_list; in getparameter()
2139 if(config->url_ul) { in getparameter()
2142 while(config->url_ul && (config->url_ul->flags & GETOUT_UPLOAD)) in getparameter()
2143 config->url_ul = config->url_ul->next; in getparameter()
2148 if(config->url_ul) in getparameter()
2150 url = config->url_ul; in getparameter()
2153 config->url_ul = url = new_getout(config); in getparameter()
2169 GetStr(&config->userpwd, nextarg); in getparameter()
2174 GetStr(&config->proxyuserpwd, nextarg); in getparameter()
2214 Curl_safefree(config->writeout); in getparameter()
2215 err = file2string(&config->writeout, file); in getparameter()
2220 if(!config->writeout) in getparameter()
2224 GetStr(&config->writeout, nextarg); in getparameter()
2229 GetStr(&config->preproxy, nextarg); in getparameter()
2233 GetStr(&config->proxy, nextarg); in getparameter()
2234 config->proxyver = CURLPROXY_HTTP; in getparameter()
2240 GetStr(&config->customrequest, nextarg); in getparameter()
2244 err = str2unum(&config->low_speed_time, nextarg); in getparameter()
2247 if(!config->low_speed_limit) in getparameter()
2248 config->low_speed_limit = 1; in getparameter()
2252 err = str2unum(&config->low_speed_limit, nextarg); in getparameter()
2255 if(!config->low_speed_time) in getparameter()
2256 config->low_speed_time = 30; in getparameter()
2283 config->timecond = CURL_TIMECOND_IFMODSINCE; in getparameter()
2287 config->timecond = CURL_TIMECOND_IFUNMODSINCE; in getparameter()
2292 config->timecond = CURL_TIMECOND_LASTMOD; in getparameter()
2297 config->condtime = (curl_off_t)curl_getdate(nextarg, &now); in getparameter()
2298 if(-1 == config->condtime) { in getparameter()
2303 config->condtime = filetime; in getparameter()
2307 config->timecond = CURL_TIMECOND_NONE; in getparameter()
2332 struct OperationConfig *config = global->first; in parse_args() local
2351 result = getparameter(orig_opt, nextarg, &passarg, global, config); in parse_args()
2353 config = global->last; in parse_args()
2359 if(config->url_list && config->url_list->url) { in parse_args()
2361 config->next = malloc(sizeof(struct OperationConfig)); in parse_args()
2362 if(config->next) { in parse_args()
2364 config_init(config->next); in parse_args()
2367 config->next->global = global; in parse_args()
2370 global->last = config->next; in parse_args()
2373 config->next->prev = config; in parse_args()
2374 config = config->next; in parse_args()
2389 config); in parse_args()