Lines Matching refs:set

178     Curl_safefree(data->set.str[i]);  in Curl_freeset()
182 Curl_safefree(data->set.blobs[j]); in Curl_freeset()
196 Curl_mime_cleanpart(&data->set.mimepost); in Curl_freeset()
281 Curl_altsvc_save(data, data->asi, data->set.str[STRING_ALTSVC]); in Curl_close()
285 Curl_hsts_save(data, data->hsts, data->set.str[STRING_HSTS]); in Curl_close()
352 struct UserDefined *set = &data->set; in Curl_init_userdefined() local
355 set->out = stdout; /* default output to stdout */ in Curl_init_userdefined()
356 set->in_set = stdin; /* default input from stdin */ in Curl_init_userdefined()
357 set->err = stderr; /* default stderr to stderr */ in Curl_init_userdefined()
360 set->fwrite_func = (curl_write_callback)fwrite; in Curl_init_userdefined()
363 set->fread_func_set = (curl_read_callback)fread; in Curl_init_userdefined()
364 set->is_fread_set = 0; in Curl_init_userdefined()
366 set->seek_client = ZERO_NULL; in Curl_init_userdefined()
368 set->filesize = -1; /* we do not know the size */ in Curl_init_userdefined()
369 set->postfieldsize = -1; /* unknown size */ in Curl_init_userdefined()
370 set->maxredirs = 30; /* sensible default */ in Curl_init_userdefined()
372 set->method = HTTPREQ_GET; /* Default HTTP request */ in Curl_init_userdefined()
374 set->rtspreq = RTSPREQ_OPTIONS; /* Default RTSP request */ in Curl_init_userdefined()
377 set->ftp_use_epsv = TRUE; /* FTP defaults to EPSV operations */ in Curl_init_userdefined()
378 set->ftp_use_eprt = TRUE; /* FTP defaults to EPRT operations */ in Curl_init_userdefined()
379 set->ftp_use_pret = FALSE; /* mainly useful for drftpd servers */ in Curl_init_userdefined()
380 set->ftp_filemethod = FTPFILE_MULTICWD; in Curl_init_userdefined()
381 set->ftp_skip_ip = TRUE; /* skip PASV IP by default */ in Curl_init_userdefined()
383 set->dns_cache_timeout = 60; /* Timeout every 60 seconds by default */ in Curl_init_userdefined()
386 set->general_ssl.max_ssl_sessions = 5; in Curl_init_userdefined()
388 set->general_ssl.ca_cache_timeout = 24 * 60 * 60; in Curl_init_userdefined()
390 set->httpauth = CURLAUTH_BASIC; /* defaults to basic */ in Curl_init_userdefined()
393 set->proxyport = 0; in Curl_init_userdefined()
394 set->proxytype = CURLPROXY_HTTP; /* defaults to HTTP proxy */ in Curl_init_userdefined()
395 set->proxyauth = CURLAUTH_BASIC; /* defaults to basic */ in Curl_init_userdefined()
397 set->socks5auth = CURLAUTH_BASIC | CURLAUTH_GSSAPI; in Curl_init_userdefined()
401 set->hide_progress = TRUE; /* CURLOPT_NOPROGRESS changes these */ in Curl_init_userdefined()
403 Curl_mime_initpart(&set->mimepost); in Curl_init_userdefined()
407 set->doh_verifyhost = TRUE; in Curl_init_userdefined()
408 set->doh_verifypeer = TRUE; in Curl_init_userdefined()
412 set->ssh_auth_types = CURLSSH_AUTH_DEFAULT; in Curl_init_userdefined()
413 set->new_directory_perms = 0755; /* Default permissions */ in Curl_init_userdefined()
416 set->new_file_perms = 0644; /* Default permissions */ in Curl_init_userdefined()
417 set->allowed_protocols = (curl_prot_t) CURLPROTO_ALL; in Curl_init_userdefined()
418 set->redir_protocols = CURLPROTO_REDIR; in Curl_init_userdefined()
425 set->socks5_gssapi_nec = FALSE; in Curl_init_userdefined()
438 result = Curl_setstropt(&set->str[STRING_SSL_CAFILE], CURL_CA_BUNDLE); in Curl_init_userdefined()
442 result = Curl_setstropt(&set->str[STRING_SSL_CAFILE_PROXY], in Curl_init_userdefined()
449 result = Curl_setstropt(&set->str[STRING_SSL_CAPATH], CURL_CA_PATH); in Curl_init_userdefined()
453 result = Curl_setstropt(&set->str[STRING_SSL_CAPATH_PROXY], CURL_CA_PATH); in Curl_init_userdefined()
461 set->wildcard_enabled = FALSE; in Curl_init_userdefined()
462 set->chunk_bgn = ZERO_NULL; in Curl_init_userdefined()
463 set->chunk_end = ZERO_NULL; in Curl_init_userdefined()
464 set->fnmatch = ZERO_NULL; in Curl_init_userdefined()
466 set->tcp_keepalive = FALSE; in Curl_init_userdefined()
467 set->tcp_keepintvl = 60; in Curl_init_userdefined()
468 set->tcp_keepidle = 60; in Curl_init_userdefined()
469 set->tcp_keepcnt = 9; in Curl_init_userdefined()
470 set->tcp_fastopen = FALSE; in Curl_init_userdefined()
471 set->tcp_nodelay = TRUE; in Curl_init_userdefined()
472 set->ssl_enable_alpn = TRUE; in Curl_init_userdefined()
473 set->expect_100_timeout = 1000L; /* Wait for a second by default. */ in Curl_init_userdefined()
474 set->sep_headers = TRUE; /* separated header lists by default */ in Curl_init_userdefined()
475 set->buffer_size = READBUFFER_SIZE; in Curl_init_userdefined()
476 set->upload_buffer_size = UPLOADBUFFER_DEFAULT; in Curl_init_userdefined()
477 set->happy_eyeballs_timeout = CURL_HET_DEFAULT; in Curl_init_userdefined()
478 set->upkeep_interval_ms = CURL_UPKEEP_INTERVAL_DEFAULT; in Curl_init_userdefined()
479 set->maxconnects = DEFAULT_CONNCACHE_SIZE; /* for easy handles */ in Curl_init_userdefined()
480 set->maxage_conn = 118; in Curl_init_userdefined()
481 set->maxlifetime_conn = 0; in Curl_init_userdefined()
482 set->http09_allowed = FALSE; in Curl_init_userdefined()
484 set->httpwant = CURL_HTTP_VERSION_2TLS in Curl_init_userdefined()
486 set->httpwant = CURL_HTTP_VERSION_1_1 in Curl_init_userdefined()
490 memset(&set->priority, 0, sizeof(set->priority)); in Curl_init_userdefined()
492 set->quick_exit = 0L; in Curl_init_userdefined()
541 data->set.dohfor_mid = -1; in Curl_open()
724 if(idletime > data->set.maxage_conn) { in conn_maxage()
733 if(data->set.maxlifetime_conn && lifetime > data->set.maxlifetime_conn) { in conn_maxage()
816 if(Curl_timediff(*now, conn->keepalive) <= data->set.upkeep_interval_ms) in Curl_conn_upkeep()
876 if(data->set.ipver != CURL_IPRESOLVE_WHATEVER in url_match_conn()
877 && data->set.ipver != conn->ip_version) { in url_match_conn()
1008 if(data->set.pipewait) { in url_match_conn()
1218 else if(match->seen_pending_conn && match->data->set.pipewait) { in url_match_result()
1284 if(data->set.verbose && sockindex == SECONDARYSOCKET) in Curl_verboseconnect()
1340 conn->http_proxy.proxytype = data->set.proxytype; in allocate_conn()
1345 conn->bits.proxy = (data->set.str[STRING_PROXY] && in allocate_conn()
1346 *data->set.str[STRING_PROXY]); in allocate_conn()
1353 if(data->set.str[STRING_PRE_PROXY] && *data->set.str[STRING_PRE_PROXY]) { in allocate_conn()
1359 conn->bits.tunnel_proxy = data->set.tunnel_thru_httpproxy; in allocate_conn()
1363 conn->bits.ftp_use_epsv = data->set.ftp_use_epsv; in allocate_conn()
1364 conn->bits.ftp_use_eprt = data->set.ftp_use_eprt; in allocate_conn()
1366 conn->ip_version = data->set.ipver; in allocate_conn()
1367 conn->connect_only = data->set.connect_only; in allocate_conn()
1378 if(data->set.str[STRING_DEVICE]) { in allocate_conn()
1379 conn->localdev = strdup(data->set.str[STRING_DEVICE]); in allocate_conn()
1384 conn->localportrange = data->set.localportrange; in allocate_conn()
1385 conn->localport = data->set.localport; in allocate_conn()
1390 conn->fclosesocket = data->set.fclosesocket; in allocate_conn()
1391 conn->closesocket_client = data->set.closesocket_client; in allocate_conn()
1393 conn->gssapi_delegation = data->set.gssapi_delegation; in allocate_conn()
1630 (data->set.allowed_protocols & p->protocol)) { in findprotocol()
1635 !(data->set.redir_protocols & p->protocol)) in findprotocol()
1735 bool use_set_uh = (data->set.uh && !data->state.this_is_a_follow);
1741 uh = data->state.uh = curl_url_dup(data->set.uh);
1750 if(data->set.str[STRING_DEFAULT_PROTOCOL] &&
1752 char *url = aprintf("%s://%s", data->set.str[STRING_DEFAULT_PROTOCOL],
1767 (data->set.disallow_username_in_url ?
1769 (data->set.path_as_is ? CURLU_PATH_AS_IS : 0)));
1928 (data->set.use_port && data->state.allow_port) ?
1929 data->set.use_port : curlx_ultous(port);
1935 if(data->set.scope_id)
1937 conn->scope_id = data->set.scope_id;
1951 s->resume_from = data->set.set_resume_from;
1952 if(s->resume_from || data->set.str[STRING_SET_RANGE]) {
1959 s->range = strdup(data->set.str[STRING_SET_RANGE]);
2262 if(data->set.proxyport)
2265 port = (int)data->set.proxyport;
2383 if(data->set.str[STRING_PROXY]) {
2384 proxy = strdup(data->set.str[STRING_PROXY]);
2393 if(data->set.str[STRING_PRE_PROXY]) {
2394 socksproxy = strdup(data->set.str[STRING_PRE_PROXY]);
2403 if(!data->set.str[STRING_NOPROXY]) {
2415 if(Curl_check_noproxy(conn->host.name, data->set.str[STRING_NOPROXY] ?
2416 data->set.str[STRING_NOPROXY] : no_proxy)) {
2640 if(data->set.use_port && data->state.allow_port) {
2644 conn->remote_port = data->set.use_port;
2677 if(data->set.str[STRING_OPTIONS]) {
2679 *optionsp = strdup(data->set.str[STRING_OPTIONS]);
2685 if(data->set.use_netrc == CURL_NETRC_REQUIRED) {
2690 if(data->set.use_netrc && !data->set.str[STRING_USERNAME]) {
2705 data->set.str[STRING_NETRC_FILE]);
2709 (data->set.str[STRING_NETRC_FILE] ?
2710 data->set.str[STRING_NETRC_FILE] : ".netrc"));
3398 if(data->set.str[STRING_SASL_AUTHZID]) {
3399 conn->sasl_authzid = strdup(data->set.str[STRING_SASL_AUTHZID]);
3406 if(data->set.str[STRING_BEARER]) {
3407 conn->oauth_bearer = strdup(data->set.str[STRING_BEARER]);
3415 if(data->set.str[STRING_UNIX_SOCKET_PATH]) {
3416 conn->unix_domain_socket = strdup(data->set.str[STRING_UNIX_SOCKET_PATH]);
3421 conn->bits.abstract_unix_socket = data->set.abstract_unix_socket;
3461 result = parse_connect_to_slist(data, conn, data->set.connect_to);
3567 conn->bits.tcp_fastopen = data->set.tcp_fastopen;
3590 if((data->set.reuse_fresh && !data->state.followlocation) ||
3591 data->set.connect_only)
3625 if(data->set.ssl_enable_alpn)
3641 if(data->set.dohfor_mid >= 0)
3867 struct Curl_data_prio_node **pnext = &parent->set.priority.children;
3868 struct Curl_data_prio_node *pnode = parent->set.priority.children;
3870 DEBUGASSERT(child->set.priority.parent == parent);
3882 child->set.priority.parent = 0;
3883 child->set.priority.exclusive = FALSE;
3890 if(child->set.priority.parent) {
3891 priority_remove_child(child->set.priority.parent, child);
3903 if(parent->set.priority.children && exclusive) {
3905 struct Curl_data_prio_node *node = parent->set.priority.children;
3907 node->data->set.priority.parent = child;
3911 tail = &child->set.priority.children;
3916 *tail = parent->set.priority.children;
3917 parent->set.priority.children = 0;
3920 tail = &parent->set.priority.children;
3922 (*tail)->data->set.priority.exclusive = FALSE;
3930 child->set.priority.parent = parent;
3931 child->set.priority.exclusive = exclusive;
3940 while(data->set.priority.children) {
3941 struct Curl_easy *tmp = data->set.priority.children->data;
3943 if(data->set.priority.parent)
3944 Curl_data_priority_add_child(data->set.priority.parent, tmp, FALSE);
3947 if(data->set.priority.parent)
3948 priority_remove_child(data->set.priority.parent, data);