summaryrefslogtreecommitdiff
path: root/src/or/dns.c
diff options
context:
space:
mode:
authorrl1987 <rl1987@sdf.lonestar.org>2015-10-18 18:04:48 +0300
committerrl1987 <rl1987@sdf.lonestar.org>2015-10-24 14:30:52 +0300
commitcc1bed9974f90e7021468f9f85b0a66b21ee9151 (patch)
tree3c0c54d525d213a511f3b3b7dc63aeeccf54a83c /src/or/dns.c
parentbb8ec2e1c61e7083cda37845ad40bc0997a16901 (diff)
downloadtor-cc1bed9974f90e7021468f9f85b0a66b21ee9151.tar.gz
tor-cc1bed9974f90e7021468f9f85b0a66b21ee9151.zip
Add a fifth unit test.
Diffstat (limited to 'src/or/dns.c')
-rw-r--r--src/or/dns.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/or/dns.c b/src/or/dns.c
index d71246d61e..234dfbe687 100644
--- a/src/or/dns.c
+++ b/src/or/dns.c
@@ -2118,5 +2118,18 @@ assert_cache_ok_(void)
}
});
}
+
#endif
+cached_resolve_t
+*dns_get_cache_entry(cached_resolve_t *query)
+{
+ return HT_FIND(cache_map, &cache_root, query);
+}
+
+void
+dns_insert_cache_entry(cached_resolve_t *new_entry)
+{
+ HT_INSERT(cache_map, &cache_root, new_entry);
+}
+