/curl/lib/ |
H A D | inet_pton.c | 55 static int inet_pton4(const char *src, unsigned char *dst); 56 static int inet_pton6(const char *src, unsigned char *dst); 75 Curl_inet_pton(int af, const char *src, void *dst) in Curl_inet_pton() argument 79 return (inet_pton4(src, (unsigned char *)dst)); in Curl_inet_pton() 81 return (inet_pton6(src, (unsigned char *)dst)); in Curl_inet_pton() 100 inet_pton4(const char *src, unsigned char *dst) in inet_pton4() argument 140 memcpy(dst, tmp, INADDRSZ); in inet_pton4() 158 inet_pton6(const char *src, unsigned char *dst) in inet_pton6() argument 239 memcpy(dst, tmp, IN6ADDRSZ); in inet_pton6()
|
H A D | inet_ntop.c | 61 static char *inet_ntop4(const unsigned char *src, char *dst, size_t size) in inet_ntop4() argument 80 strcpy(dst, tmp); in inet_ntop4() 81 return dst; in inet_ntop4() 87 static char *inet_ntop6(const unsigned char *src, char *dst, size_t size) in inet_ntop6() argument 177 strcpy(dst, tmp); in inet_ntop6() 178 return dst; in inet_ntop6()
|
H A D | altsvc.c | 91 free(as->dst.host); in altsvc_free() 133 as->dst.host = Curl_memdup0(dsthost, dlen); in altsvc_createid() 134 if(!as->dst.host) in altsvc_createid() 138 as->dst.alpnid = dstalpnid; in altsvc_createid() 140 as->dst.port = curlx_ultous(dstport); in altsvc_createid() 260 if(1 == Curl_inet_pton(AF_INET6, as->dst.host, ipv6_unused)) { in altsvc_out() 280 Curl_alpnid2str(as->dst.alpnid), in altsvc_out() 281 dst6_pre, as->dst.host, dst6_post, in altsvc_out() 282 as->dst.port, in altsvc_out() 697 (versions & (int)as->dst.alpnid)) { in Curl_altsvc_lookup()
|
H A D | easy.c | 865 static CURLcode dupset(struct Curl_easy *dst, struct Curl_easy *src) in dupset() argument 873 dst->set = src->set; in dupset() 874 Curl_mime_initpart(&dst->set.mimepost); in dupset() 878 memset(dst->set.str, 0, STRING_LAST * sizeof(char *)); in dupset() 883 result = Curl_setstropt(&dst->set.str[i], src->set.str[i]); in dupset() 899 dst->set.str[i] = strdup(src->set.str[i]); in dupset() 902 dst->set.str[i] = Curl_memdup(src->set.str[i], in dupset() 904 if(!dst->set.str[i]) in dupset() 907 dst->set.postfields = dst->set.str[i]; in dupset() 911 result = Curl_mime_duppart(dst, &dst->set.mimepost, &src->set.mimepost); in dupset() [all …]
|
H A D | altsvc.h | 47 struct althost dst; member
|
H A D | mime.c | 1210 DEBUGASSERT(dst); in Curl_mime_duppart() 1217 res = curl_mime_data(dst, src->data, (size_t) src->datasize); in Curl_mime_duppart() 1220 res = curl_mime_filedata(dst, src->data); in Curl_mime_duppart() 1226 res = curl_mime_data_cb(dst, src->datasize, src->readfunc, in Curl_mime_duppart() 1233 res = mime ? curl_mime_subparts(dst, mime) : CURLE_OUT_OF_MEMORY; in Curl_mime_duppart() 1256 res = curl_mime_headers(dst, hdrs, TRUE); in Curl_mime_duppart() 1264 dst->encoder = src->encoder; in Curl_mime_duppart() 1265 res = curl_mime_type(dst, src->mimetype); in Curl_mime_duppart() 1268 res = curl_mime_name(dst, src->name); in Curl_mime_duppart() 1270 res = curl_mime_filename(dst, src->filename); in Curl_mime_duppart() [all …]
|
H A D | mime.h | 144 struct curl_mimepart *dst,
|
H A D | content_encoding.c | 667 uint8_t *dst; in brotli_do_write() local 684 dst = (uint8_t *) decomp; in brotli_do_write() 687 &nbytes, &src, &dstleft, &dst, NULL); in brotli_do_write() 779 out.dst = zp->decomp; in zstd_do_write()
|
H A D | http_aws_sigv4.c | 65 static void sha256_to_hex(char *dst, unsigned char *sha) in sha256_to_hex() argument 68 (unsigned char *)dst, SHA256_HEX_LENGTH); in sha256_to_hex()
|
H A D | url.c | 3124 char *hostd = strdup((char *)as->dst.host); 3130 conn->conn_to_port = as->dst.port; 3135 Curl_alpnid2str(as->dst.alpnid), hostd, as->dst.port); 3136 if(srcalpnid != as->dst.alpnid) { 3138 switch(as->dst.alpnid) {
|
/curl/tests/data/ |
H A D | test58 | 39 PUT /we/want/%TESTNUMBERte%5b%5dst.txt HTTP/1.1
|
/curl/tests/server/ |
H A D | sws.c | 2333 char *dst = (char *) (all_sockets + socket_idx); in main() local 2336 memmove(dst, src, end - src); in main()
|