aboutsummaryrefslogtreecommitdiff
path: root/src/or/rendcommon.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-04-28 15:57:27 -0400
committerNick Mathewson <nickm@torproject.org>2011-04-28 15:57:27 -0400
commit32918e954fa3c2d55eb6b7695bd833197c31e09e (patch)
tree414b6ed3d4e1b98db8f05b4907006e4737024b0d /src/or/rendcommon.c
parent26456d33546b674d5fa4d2c0112eeec561da7279 (diff)
parent2c0258b69a232a7b11ecc999bee74dac1c1b1495 (diff)
downloadtor-32918e954fa3c2d55eb6b7695bd833197c31e09e.tar
tor-32918e954fa3c2d55eb6b7695bd833197c31e09e.tar.gz
Merge remote-tracking branch 'origin/maint-0.2.2'
Conflicts: src/or/rendcommon.h
Diffstat (limited to 'src/or/rendcommon.c')
-rw-r--r--src/or/rendcommon.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c
index 1ed543a39..3ee7419d7 100644
--- a/src/or/rendcommon.c
+++ b/src/or/rendcommon.c
@@ -833,6 +833,16 @@ rend_cache_clean(time_t now)
}
}
+/** Remove ALL entries from the rendezvous service descriptor cache.
+ */
+void
+rend_cache_purge(void)
+{
+ if (rend_cache)
+ strmap_free(rend_cache, _rend_cache_entry_free);
+ rend_cache = strmap_new();
+}
+
/** Remove all old v2 descriptors and those for which this hidden service
* directory is not responsible for any more. */
void