Lines Matching refs:domain
110 free(co->domain); in freecookie()
331 static bool isip(const char *domain) in isip() argument
338 if(Curl_inet_pton(AF_INET, domain, &addr) in isip()
340 || Curl_inet_pton(AF_INET6, domain, &addr6) in isip()
372 const char *domain, /* default domain */ in Curl_cookie_add() argument
503 is_ip = isip(domain ? domain : whatptr); in Curl_cookie_add()
508 domain=":"; in Curl_cookie_add()
510 if(!domain in Curl_cookie_add()
511 || (is_ip && !strcmp(whatptr, domain)) in Curl_cookie_add()
512 || (!is_ip && tailmatch(whatptr, domain))) { in Curl_cookie_add()
513 strstore(&co->domain, whatptr); in Curl_cookie_add()
514 if(!co->domain) { in Curl_cookie_add()
610 if(!badcookie && !co->domain) { in Curl_cookie_add()
611 if(domain) { in Curl_cookie_add()
613 co->domain=strdup(domain); in Curl_cookie_add()
614 if(!co->domain) in Curl_cookie_add()
700 co->domain = strdup(ptr); in Curl_cookie_add()
701 if(!co->domain) in Curl_cookie_add()
800 if(domain && co->domain && !isip(co->domain)) { in Curl_cookie_add()
802 && !psl_is_cookie_domain_acceptable(psl, domain, co->domain)) { in Curl_cookie_add()
805 co->name, domain, co->domain); in Curl_cookie_add()
818 if(clist->domain && co->domain) { in Curl_cookie_add()
819 if(Curl_raw_equal(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()
1011 l1 = c1->domain ? strlen(c1->domain) : 0; in cookie_sort()
1012 l2 = c2->domain ? strlen(c2->domain) : 0; in cookie_sort()
1067 if(!co->domain || in Curl_cookie_getlist()
1068 (co->tailmatch && !is_ip && tailmatch(co->domain, host)) || in Curl_cookie_getlist()
1069 ((!co->tailmatch || is_ip) && Curl_raw_equal(host, co->domain)) ) { in Curl_cookie_getlist()
1259 (co->tailmatch && co->domain && co->domain[0] != '.')? ".":"", in get_netscape_format()
1260 co->domain?co->domain:"unknown", in get_netscape_format()
1309 if(!co->domain) in cookie_output()
1340 if(!c->domain) in Curl_cookie_list()