aboutsummaryrefslogtreecommitdiff
path: root/src/or/rendcommon.c
diff options
context:
space:
mode:
authorRobert Ransom <rransom.8774@gmail.com>2011-04-20 02:27:58 -0700
committerSebastian Hahn <sebastian@torproject.org>2011-04-28 18:14:50 +0200
commit440e48ddf27094e48c401c68c9014eca43b6867e (patch)
tree44461748a3895f0fa13f2a955cc94edec896ed89 /src/or/rendcommon.c
parent43ffd023e9267927539dc9c12bee86199cd1c800 (diff)
downloadtor-440e48ddf27094e48c401c68c9014eca43b6867e.tar
tor-440e48ddf27094e48c401c68c9014eca43b6867e.tar.gz
Forget all rendezvous client state on SIGNAL NEWNYM
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 d6f544381..ba28ccabd 100644
--- a/src/or/rendcommon.c
+++ b/src/or/rendcommon.c
@@ -871,6 +871,16 @@ rend_cache_clean(void)
}
}
+/** 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