Lines Matching refs:domain
109 free(co->domain); in freecookie()
330 static bool isip(const char *domain) in isip() argument
337 if(Curl_inet_pton(AF_INET, domain, &addr) in isip()
339 || Curl_inet_pton(AF_INET6, domain, &addr6) in isip()
371 const char *domain, /* default domain */ in Curl_cookie_add() argument
502 is_ip = isip(domain ? domain : whatptr); in Curl_cookie_add()
507 domain=":"; in Curl_cookie_add()
509 if(!domain in Curl_cookie_add()
510 || (is_ip && !strcmp(whatptr, domain)) in Curl_cookie_add()
511 || (!is_ip && tailmatch(whatptr, domain))) { in Curl_cookie_add()
512 strstore(&co->domain, whatptr); in Curl_cookie_add()
513 if(!co->domain) { in Curl_cookie_add()
609 if(!badcookie && !co->domain) { in Curl_cookie_add()
610 if(domain) { in Curl_cookie_add()
612 co->domain=strdup(domain); in Curl_cookie_add()
613 if(!co->domain) in Curl_cookie_add()
699 co->domain = strdup(ptr); in Curl_cookie_add()
700 if(!co->domain) in Curl_cookie_add()
799 if(domain && co->domain && !isip(co->domain)) { in Curl_cookie_add()
801 && !psl_is_cookie_domain_acceptable(psl, domain, co->domain)) { in Curl_cookie_add()
804 co->name, domain, co->domain); in Curl_cookie_add()
817 if(clist->domain && co->domain) { in Curl_cookie_add()
818 if(strcasecompare(clist->domain, co->domain) && in Curl_cookie_add()
823 else if(!clist->domain && !co->domain) in Curl_cookie_add()
860 free(clist->domain); in Curl_cookie_add()
890 co->domain, co->path, co->expires); in Curl_cookie_add()
1040 l1 = c1->domain ? strlen(c1->domain) : 0; in cookie_sort()
1041 l2 = c2->domain ? strlen(c2->domain) : 0; in cookie_sort()
1068 CLONE(domain); in dup_cookie()
1130 if(!co->domain || in Curl_cookie_getlist()
1131 (co->tailmatch && !is_ip && tailmatch(co->domain, host)) || in Curl_cookie_getlist()
1132 ((!co->tailmatch || is_ip) && strcasecompare(host, co->domain)) ) { in Curl_cookie_getlist()
1307 (co->tailmatch && co->domain && co->domain[0] != '.')? ".":"", in get_netscape_format()
1308 co->domain?co->domain:"unknown", in get_netscape_format()
1357 if(!co->domain) in cookie_output()
1388 if(!c->domain) in Curl_cookie_list()