Lines Matching defs:domain
63 cookies efficiently. All cookies with the same domain are stored
65 looking up the domain in the cookie jar's chains_by_domain table.
75 /* Cookie chains indexed by domain. */
95 char *domain; /* domain of the cookie */
118 same domain. */
152 xfree_null (cookie->domain);
163 that table is the domain name, and the value is a linked list of
164 all cookies from that domain. Every new cookie is placed on the
167 /* Find and return a cookie in JAR whose domain, path, and attribute
180 chain = hash_table_get (jar->chains, cookie->domain);
214 if (hash_table_get_pair (jar->chains, cookie->domain,
217 /* A chain of cookies in this domain already exists. Check for
218 duplicates -- if an extant cookie exactly matches our domain,
248 /* We are now creating the chain. Use a copy of cookie->domain
250 cookie->domain would be unsafe because the life-time of the
254 chain_key = xstrdup (cookie->domain);
264 cookie->domain, cookie->port,
274 /* Discard a cookie matching COOKIE's domain, port, path, and
302 res = hash_table_get_pair (jar->chains, victim->domain,
309 hash_table_remove (jar->chains, victim->domain);
341 against field names such as `domain', `path', etc. Recognized
361 if (TOKEN_IS (name, "domain"))
365 xfree_null (cookie->domain);
367 domain doesn't begin with a dot. But many sites set the
368 domain to "foo.com" and expect "subhost.foo.com" to get the
372 cookie->domain = strdupdelim (value.b, value.e);
498 /* Check whether COOKIE_DOMAIN is an appropriate domain for HOST.
533 reject on the basis of the length of the second-level domain name
534 (but when the top-level domain is unknown), with the assumption
544 .img.cnn.de -> works because it's not trying to set the 2nd level domain
552 int dccount = 1; /* number of domain components */
553 int ldcl = 0; /* last domain component length */
554 int nldcl = 0; /* next to last domain component length */
568 /* Empty domain component found -- the domain is invalid. */
572 /* Tolerate trailing '.' by not treating the domain as
573 one ending with an empty domain component. */
612 /* Don't allow the host "foobar.com" to set a cookie for domain
619 /* desired domain: bar.com */
675 if (!cookie->domain)
678 /* If the domain was not provided, we use the one we're talking
680 cookie->domain = xstrdup (host);
688 if (!check_domain_match (cookie->domain, host))
691 _("Cookie coming from %s attempted to set domain to %s\n"),
693 quotearg_style (escape_quoting_style, cookie->domain));
694 xfree (cookie->domain);
760 host/domain. Given HOST "img.search.xemacs.org", this function
766 elements as there are domain components of HOST. */
784 one. As a domain with N components has N-1 dots, the number of
851 /* If exact domain match is required, verify that cookie's domain is
855 && 0 != strcasecmp (host, cookie->domain))
952 /* Sort by domain goodness; if these are the same, sort by path
1018 outgoing[ocnt].domain_goodness = strlen (cookie->domain);
1029 that, within one domain, best-matching paths come first. */
1079 DOMAIN -- cookie domain, optionally followed by :PORT
1080 DOMAIN-FLAG -- whether all hosts in the domain match
1195 value indicating if all machines within a given domain can
1197 browser, depending on the value set for the domain." */
1208 cookie->domain = strdupdelim (domain_b, domain_e);
1272 const char *domain = iter.key;
1282 fputs (domain, fp);
1311 /* Iterate over chains (indexed by domain) and free them. */