Lines Matching refs:outcurl

927   struct Curl_easy *outcurl = calloc(1, sizeof(struct Curl_easy));  in curl_easy_duphandle()  local
928 if(!outcurl) in curl_easy_duphandle()
936 outcurl->set.buffer_size = data->set.buffer_size; in curl_easy_duphandle()
939 if(dupset(outcurl, data)) in curl_easy_duphandle()
942 Curl_dyn_init(&outcurl->state.headerb, CURL_MAX_HTTP_HEADER); in curl_easy_duphandle()
943 Curl_netrc_init(&outcurl->state.netrc); in curl_easy_duphandle()
946 outcurl->state.lastconnect_id = -1; in curl_easy_duphandle()
947 outcurl->state.recent_conn_id = -1; in curl_easy_duphandle()
948 outcurl->id = -1; in curl_easy_duphandle()
950 outcurl->progress.flags = data->progress.flags; in curl_easy_duphandle()
951 outcurl->progress.callback = data->progress.callback; in curl_easy_duphandle()
954 outcurl->state.cookielist = NULL; in curl_easy_duphandle()
958 outcurl->cookies = Curl_cookie_init(outcurl, NULL, outcurl->cookies, in curl_easy_duphandle()
960 if(!outcurl->cookies) in curl_easy_duphandle()
965 outcurl->state.cookielist = Curl_slist_duplicate(data->state.cookielist); in curl_easy_duphandle()
966 if(!outcurl->state.cookielist) in curl_easy_duphandle()
972 outcurl->state.url = strdup(data->state.url); in curl_easy_duphandle()
973 if(!outcurl->state.url) in curl_easy_duphandle()
975 outcurl->state.url_alloc = TRUE; in curl_easy_duphandle()
979 outcurl->state.referer = strdup(data->state.referer); in curl_easy_duphandle()
980 if(!outcurl->state.referer) in curl_easy_duphandle()
982 outcurl->state.referer_alloc = TRUE; in curl_easy_duphandle()
987 if(outcurl->set.str[STRING_SSL_ENGINE]) { in curl_easy_duphandle()
988 if(Curl_ssl_set_engine(outcurl, outcurl->set.str[STRING_SSL_ENGINE])) in curl_easy_duphandle()
994 outcurl->asi = Curl_altsvc_init(); in curl_easy_duphandle()
995 if(!outcurl->asi) in curl_easy_duphandle()
997 if(outcurl->set.str[STRING_ALTSVC]) in curl_easy_duphandle()
998 (void)Curl_altsvc_load(outcurl->asi, outcurl->set.str[STRING_ALTSVC]); in curl_easy_duphandle()
1003 outcurl->hsts = Curl_hsts_init(); in curl_easy_duphandle()
1004 if(!outcurl->hsts) in curl_easy_duphandle()
1006 if(outcurl->set.str[STRING_HSTS]) in curl_easy_duphandle()
1007 (void)Curl_hsts_loadfile(outcurl, in curl_easy_duphandle()
1008 outcurl->hsts, outcurl->set.str[STRING_HSTS]); in curl_easy_duphandle()
1009 (void)Curl_hsts_loadcb(outcurl, outcurl->hsts); in curl_easy_duphandle()
1015 if(Curl_resolver_duphandle(outcurl, in curl_easy_duphandle()
1016 &outcurl->state.async.resolver, in curl_easy_duphandle()
1025 rc = Curl_set_dns_servers(outcurl, data->set.str[STRING_DNS_SERVERS]); in curl_easy_duphandle()
1029 rc = Curl_set_dns_interface(outcurl, data->set.str[STRING_DNS_INTERFACE]); in curl_easy_duphandle()
1033 rc = Curl_set_dns_local_ip4(outcurl, data->set.str[STRING_DNS_LOCAL_IP4]); in curl_easy_duphandle()
1037 rc = Curl_set_dns_local_ip6(outcurl, data->set.str[STRING_DNS_LOCAL_IP6]); in curl_easy_duphandle()
1043 Curl_llist_init(&outcurl->state.httphdrs, NULL); in curl_easy_duphandle()
1045 Curl_initinfo(outcurl); in curl_easy_duphandle()
1047 outcurl->magic = CURLEASY_MAGIC_NUMBER; in curl_easy_duphandle()
1051 return outcurl; in curl_easy_duphandle()
1055 if(outcurl) { in curl_easy_duphandle()
1057 free(outcurl->cookies); in curl_easy_duphandle()
1059 Curl_dyn_free(&outcurl->state.headerb); in curl_easy_duphandle()
1060 Curl_altsvc_cleanup(&outcurl->asi); in curl_easy_duphandle()
1061 Curl_hsts_cleanup(&outcurl->hsts); in curl_easy_duphandle()
1062 Curl_freeset(outcurl); in curl_easy_duphandle()
1063 free(outcurl); in curl_easy_duphandle()