• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/wget-1.12/src/

Lines Matching refs:jar

62 /* Cookie jar serves as cookie storage and a means of retrieving
65 looking up the domain in the cookie jar's chains_by_domain table.
68 execute hash_table_get(jar->chains_by_domain, "google.com"). Of
78 int cookie_count; /* number of cookies in the jar. */
88 struct cookie_jar *jar = xnew (struct cookie_jar);
89 jar->chains = make_nocase_string_hash_table (0);
90 jar->cookie_count = 0;
91 return jar;
162 All cookies can be reached beginning with jar->chains. The key in
175 find_matching_cookie (struct cookie_jar *jar, struct cookie *cookie,
180 chain = hash_table_get (jar->chains, cookie->domain);
199 /* Store COOKIE to the jar.
209 store_cookie (struct cookie_jar *jar, struct cookie *cookie)
214 if (hash_table_get_pair (jar->chains, cookie->domain,
221 struct cookie *victim = find_matching_cookie (jar, cookie, &prev);
240 --jar->cookie_count;
257 hash_table_put (jar->chains, chain_key, cookie);
258 ++jar->cookie_count;
281 discard_matching_cookie (struct cookie_jar *jar, struct cookie *cookie)
285 if (!hash_table_count (jar->chains))
289 victim = find_matching_cookie (jar, cookie, &prev);
302 res = hash_table_get_pair (jar->chains, victim->domain,
309 hash_table_remove (jar->chains, victim->domain);
313 hash_table_put (jar->chains, chain_key, victim->next);
657 cookie_handle_set_cookie (struct cookie_jar *jar,
726 discard_matching_cookie (jar, cookie);
730 store_cookie (jar, cookie);
769 find_chains_of_host (struct cookie_jar *jar, const char *host,
775 /* Bail out quickly if there are no cookies in the jar. */
776 if (!hash_table_count (jar->chains))
796 struct cookie *chain = hash_table_get (jar->chains, host);
965 cookie_header (struct cookie_jar *jar, const char *host,
984 chain_count = find_chains_of_host (jar, host, chains);
1135 cookie_jar_load (struct cookie_jar *jar, const char *file)
1233 store_cookie (jar, cookie);
1247 cookie_jar_save (struct cookie_jar *jar, const char *file)
1268 for (hash_table_iterate (jar->chains, &iter);
1309 cookie_jar_delete (struct cookie_jar *jar)
1313 for (hash_table_iterate (jar->chains, &iter); hash_table_iter_next (&iter); )
1325 hash_table_destroy (jar->chains);
1326 xfree (jar);