• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/curl/curl-7.36.0/src/

Lines Matching defs:config

230   {"K",  "config",                   TRUE},
378 struct OperationConfig *config)
482 GetStr(&config->dns_ipv4_addr, nextarg);
486 GetStr(&config->dns_ipv6_addr, nextarg);
489 GetStr(&config->random_file, nextarg);
492 GetStr(&config->egd_file, nextarg);
495 GetStr(&config->xoauth2_bearer, nextarg);
498 err = str2udouble(&config->connecttimeout, nextarg);
503 GetStr(&config->cipher_list, nextarg);
507 GetStr(&config->dns_interface, nextarg);
510 config->disable_epsv = toggle;
513 config->disable_epsv = (!toggle)?TRUE:FALSE;
517 config->writeenv = toggle;
522 GetStr(&config->dns_servers, nextarg);
527 warnf(config, "--trace overrides an earlier trace/verbose option\n");
531 config->nonpn = (!toggle)?TRUE:FALSE;
536 warnf(config,
541 config->noalpn = (!toggle)?TRUE:FALSE;
572 warnf(config, "unsupported rate unit. Use G, M, K or B!\n");
575 config->recvpersecond = value;
576 config->sendpersecond = value;
583 config->encoding = toggle;
587 config->tr_encoding = toggle;
592 config->authtype |= CURLAUTH_DIGEST;
594 config->authtype &= ~CURLAUTH_DIGEST;
600 config->authtype |= CURLAUTH_GSSNEGOTIATE;
605 config->authtype &= ~CURLAUTH_GSSNEGOTIATE;
611 config->authtype |= CURLAUTH_NTLM;
616 config->authtype &= ~CURLAUTH_NTLM;
622 config->authtype |= CURLAUTH_NTLM_WB;
627 config->authtype &= ~CURLAUTH_NTLM_WB;
632 config->authtype |= CURLAUTH_BASIC;
634 config->authtype &= ~CURLAUTH_BASIC;
639 config->authtype = CURLAUTH_ANY;
649 config->ftp_create_dirs = toggle;
653 config->create_dirs = toggle;
659 err = str2num(&config->maxredirs, nextarg);
662 if(config->maxredirs < -1)
668 config->proxyntlm = toggle;
675 config->crlf = toggle;
682 warnf(config, "Failed to open %s!\n", nextarg);
695 GetStr(&config->iface, nextarg);
701 GetStr(&config->krblevel, nextarg);
706 err = str2offset(&config->max_filesize, nextarg);
711 config->disable_eprt = toggle;
714 config->disable_eprt = (!toggle)?TRUE:FALSE;
720 if(config->url_get || ((config->url_get = config->url_list) != NULL)) {
723 while(config->url_get && (config->url_get->flags & GETOUT_URL))
724 config->url_get = config->url_get->next;
729 if(config->url_get)
731 url = config->url_get;
734 url = new_getout(config);
751 config->ftp_ssl = toggle;
754 Curl_safefree(config->ftpport);
758 GetStr(&config->socksproxy, nextarg);
759 config->socksver = CURLPROXY_SOCKS5;
762 GetStr(&config->socksproxy, nextarg);
763 config->socksver = CURLPROXY_SOCKS4;
766 GetStr(&config->socksproxy, nextarg);
767 config->socksver = CURLPROXY_SOCKS4A;
771 GetStr(&config->socksproxy, nextarg);
772 config->socksver = CURLPROXY_SOCKS5_HOSTNAME;
775 config->tcp_nodelay = toggle;
778 config->proxydigest = toggle;
781 config->proxybasic = toggle;
784 err = str2unum(&config->req_retry, nextarg);
789 err = str2unum(&config->retry_delay, nextarg);
794 err = str2unum(&config->retry_maxtime, nextarg);
801 config->proxynegotiate = toggle;
806 GetStr(&config->ftp_account, nextarg);
809 config->proxyanyauth = toggle;
815 config->ignorecl = toggle;
818 config->ftp_skip_ip = toggle;
821 config->ftp_filemethod = ftpfilemethod(config, nextarg);
825 &config->localport,
826 &config->localportrange);
830 config->localportrange = 1; /* default number of ports to try */
832 config->localportrange -= config->localport;
833 if(config->localportrange < 1) {
834 warnf(config, "bad range input\n");
840 GetStr(&config->ftp_alternative_to_user, nextarg);
845 config->ftp_ssl_reqd = toggle;
848 config->disable_sessionid = (!toggle)?TRUE:FALSE;
853 config->ftp_ssl_control = toggle;
856 config->ftp_ssl_ccc = toggle;
857 if(!config->ftp_ssl_ccc_mode)
858 config->ftp_ssl_ccc_mode = CURLFTPSSL_CCC_PASSIVE;
861 config->ftp_ssl_ccc = TRUE;
862 config->ftp_ssl_ccc_mode = ftpcccmethod(config, nextarg);
866 warnf(config,
874 config->raw = toggle;
877 config->post301 = toggle;
880 config->nokeepalive = (!toggle)?TRUE:FALSE;
883 err = str2unum(&config->alivetime, nextarg);
888 config->post302 = toggle;
891 config->post303 = toggle;
895 GetStr(&config->noproxy, nextarg);
899 GetStr(&config->socks5_gssapi_service, nextarg);
902 config->socks5_gssapi_nec = toggle;
907 GetStr(&config->proxy, nextarg);
908 config->proxyver = CURLPROXY_HTTP_1_0;
911 err = str2unum(&config->tftp_blksize, nextarg);
916 GetStr(&config->mail_from, nextarg);
920 err = add2list(&config->mail_rcpt, nextarg);
925 config->ftp_pret = toggle;
928 config->proto_present = TRUE;
929 if(proto2num(config, &config->proto, nextarg))
933 config->proto_redir_present = TRUE;
934 if(proto2num(config, &config->proto_redir, nextarg))
938 err = add2list(&config->resolve, nextarg);
943 config->gssapi_delegation = delegation(config, nextarg);
946 GetStr(&config->mail_auth, nextarg);
954 warnf(config,
965 config->use_metalink = toggle;
967 warnf(config, "--metalink option is ignored because the binary is "
973 config->sasl_ir = toggle;
977 config->test_event_based = toggle;
979 warnf(config, "--test-event is ignored unless a debug build!\n");
993 config->xattr = toggle;
999 config->httpversion = CURL_HTTP_VERSION_1_0;
1003 config->httpversion = CURL_HTTP_VERSION_1_1;
1007 config->httpversion = CURL_HTTP_VERSION_2_0;
1015 config->ssl_version = CURL_SSLVERSION_TLSv1;
1019 config->ssl_version = CURL_SSLVERSION_TLSv1_0;
1023 config->ssl_version = CURL_SSLVERSION_TLSv1_1;
1027 config->ssl_version = CURL_SSLVERSION_TLSv1_2;
1033 config->ssl_version = CURL_SSLVERSION_SSLv2;
1037 config->ssl_version = CURL_SSLVERSION_SSLv3;
1041 config->ip_version = 4;
1045 config->ip_version = 6;
1049 config->ftp_append = toggle;
1053 GetStr(&config->useragent, nextarg);
1061 GetStr(&config->cookie, nextarg);
1065 GetStr(&config->cookiefile, nextarg);
1069 config->use_ascii = toggle;
1073 GetStr(&config->cookiejar, nextarg);
1078 err = str2offset(&config->resume_from, nextarg);
1081 config->resume_from_current = FALSE;
1084 config->resume_from_current = TRUE;
1085 config->resume_from = 0;
1087 config->use_resume=TRUE;
1128 warnf(config,
1155 char *enc = curl_easy_escape(config->easy, postdata, (int)size);
1194 warnf(config, "Couldn't read data from file \"%s\", this makes "
1236 if(config->postfields) {
1239 char *oldpost = config->postfields;
1240 curl_off_t oldlen = config->postfieldsize;
1242 config->postfields = malloc((size_t)newlen);
1243 if(!config->postfields) {
1248 memcpy(config->postfields, oldpost, (size_t)oldlen);
1250 config->postfields[oldlen] = '\x26';
1251 memcpy(&config->postfields[oldlen+1], postdata, size);
1252 config->postfields[oldlen+1+size] = '\0';
1255 config->postfieldsize += size+1;
1258 config->postfields = postdata;
1259 config->postfieldsize = size;
1266 if(SetHTTPrequest(HTTPREQ_SIMPLEPOST, &config->httpreq)) {
1274 GetStr(&config->headerfile, nextarg);
1282 config->autoreferer = TRUE;
1286 config->autoreferer = FALSE;
1287 GetStr(&config->referer, nextarg);
1294 GetStr(&config->cacert, nextarg);
1297 GetStr(&config->cert_type, nextarg);
1300 GetStr(&config->key, nextarg);
1303 GetStr(&config->key_type, nextarg);
1306 GetStr(&config->key_passwd, nextarg);
1310 GetStr(&config->engine, nextarg);
1311 if(config->engine && curlx_raw_equal(config->engine,"list"))
1316 GetStr(&config->capath, nextarg);
1319 GetStr(&config->pubkey, nextarg);
1322 GetStr(&config->hostpubmd5, nextarg);
1323 if(!config->hostpubmd5 || strlen(config->hostpubmd5) != 32)
1328 GetStr(&config->crlfile, nextarg);
1332 GetStr(&config->tls_username, nextarg);
1338 GetStr(&config->tls_password, nextarg);
1344 GetStr(&config->tls_authtype, nextarg);
1345 if(!strequal(config->tls_authtype, "SRP"))
1353 config->ssl_allow_beast = toggle;
1357 GetStr(&config->login_options, nextarg);
1364 Curl_safefree(config->cert);
1365 config->cert = certname;
1367 Curl_safefree(config->key_passwd);
1368 config->key_passwd = passphrase;
1376 config->failonerror = toggle;
1381 if(formparse(config,
1383 &config->httppost,
1384 &config->last_post,
1387 if(SetHTTPrequest(config, HTTPREQ_POST, &config->httpreq))
1392 config->globoff = toggle;
1396 config->use_httpget = TRUE;
1407 err = add2list(&config->headers, nextarg);
1412 config->include_headers = toggle; /* include the headers as well in the
1416 config->cookiesession = toggle;
1422 config->no_body = toggle;
1423 if(SetHTTPrequest(config,
1424 (config->no_body)?HTTPREQ_HEAD:HTTPREQ_GET,
1425 &config->httpreq))
1429 if(config->include_headers) {
1430 warnf(config,
1434 config->content_disposition = toggle;
1437 config->insecure_ok = toggle;
1439 case 'K': /* parse config file */
1441 warnf(config, "error trying read config from the '%s' file\n",
1445 config->dirlistonly = toggle; /* only list the names of the FTP dir */
1448 config->followlocation = toggle; /* Follow Location: HTTP headers */
1453 config->unrestricted_auth = toggle;
1459 err = str2udouble(&config->timeout, nextarg);
1468 warnf(config,
1478 config->netrc_opt = toggle;
1481 GetStr(&config->netrc_file, nextarg);
1486 config->netrc = toggle;
1494 config->nobuffer = (!toggle)?TRUE:FALSE;
1496 config->nobuffer = toggle;
1500 config->default_node_flags = toggle?GETOUT_USEREMOTE:0;
1508 if(config->url_out || ((config->url_out = config->url_list) != NULL)) {
1511 while(config->url_out && (config->url_out->flags & GETOUT_OUTFILE))
1512 config->url_out = config->url_out->next;
1517 if(config->url_out)
1519 url = config->url_out;
1522 url = new_getout(config);
1549 GetStr(&config->ftpport, nextarg);
1553 config->proxytunnel = toggle;
1565 err = add2list(&config->postquote, nextarg);
1570 err = add2list(&config->prequote, nextarg);
1573 err = add2list(&config->quote, nextarg);
1587 warnf(config,
1592 Curl_safefree(config->range);
1593 config->range = strdup(buffer);
1594 if(!config->range)
1603 warnf(config,"Invalid character is found in given range. "
1612 GetStr(&config->range, nextarg);
1617 config->remote_time = toggle;
1637 err = add2list(&config->telnet_options, nextarg);
1645 if(config->url_out || ((config->url_out = config->url_list) != NULL)) {
1648 while(config->url_out && (config->url_out->flags & GETOUT_UPLOAD))
1649 config->url_out = config->url_out->next;
1654 if(config->url_out)
1656 url = config->url_out;
1659 url = new_getout(config);
1676 GetStr(&config->userpwd, nextarg);
1681 GetStr(&config->proxyuserpwd, nextarg);
1692 warnf(config,
1721 err = file2string(&config->writeout, file);
1726 if(!config->writeout)
1727 warnf(config, "Failed to read %s", fname);
1730 GetStr(&config->writeout, nextarg);
1734 GetStr(&config->proxy, nextarg);
1735 config->proxyver = CURLPROXY_HTTP;
1739 GetStr(&config->customrequest, nextarg);
1743 err = str2unum(&config->low_speed_time, nextarg);
1746 if(!config->low_speed_limit)
1747 config->low_speed_limit = 1;
1751 err = str2unum(&config->low_speed_limit, nextarg);
1754 if(!config->low_speed_time)
1755 config->low_speed_time = 30;
1763 config->timecond = CURL_TIMECOND_IFMODSINCE;
1767 config->timecond = CURL_TIMECOND_IFUNMODSINCE;
1772 config->timecond = CURL_TIMECOND_LASTMOD;
1777 config->condtime=curl_getdate(nextarg, &now);
1778 if(-1 == (int)config->condtime) {
1783 config->timecond = CURL_TIMECOND_NONE;
1784 warnf(config,
1791 config->condtime = statbuf.st_mtime;
1805 ParameterError parse_args(struct GlobalConfig *config, int argc,
1812 struct OperationConfig *operation = config->first;
1829 result = getparameter(flag, nextarg, &passarg, config, operation);
1836 /* Allocate the next config */
1839 /* Initialise the newly created config */
1843 operation->next->easy = config->easy;
1845 /* Set the global config pointer */
1846 operation->next->global = config;
1849 config->last = operation->next;
1851 /* Move onto the new config */
1867 result = getparameter((char *)"--url", argv[i], &used, config,
1879 helpf(config->errors, "option %s: %s\n", orig_opt, reason);
1881 helpf(config->errors, "%s\n", reason);