aboutsummaryrefslogtreecommitdiff
path: root/src/or/rendclient.c
diff options
context:
space:
mode:
authorRobert Ransom <rransom.8774@gmail.com>2011-06-02 02:57:29 -0700
committerRobert Ransom <rransom.8774@gmail.com>2011-06-02 02:57:29 -0700
commitd7af8a2f076a38d8be32798d34049ce150c8dda0 (patch)
tree45a482b170c8af71146351479b2462d7f7b043ef /src/or/rendclient.c
parentb0e7925c0205a68d730025cc8832110c1675cfd7 (diff)
downloadtor-d7af8a2f076a38d8be32798d34049ce150c8dda0.tar
tor-d7af8a2f076a38d8be32798d34049ce150c8dda0.tar.gz
Refactor HS client state-clearing code into a separate function
Diffstat (limited to 'src/or/rendclient.c')
-rw-r--r--src/or/rendclient.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/or/rendclient.c b/src/or/rendclient.c
index 12b54df0d..329b2567d 100644
--- a/src/or/rendclient.c
+++ b/src/or/rendclient.c
@@ -27,6 +27,16 @@ static extend_info_t *rend_client_get_random_intro_impl(
const rend_cache_entry_t *rend_query,
const int strict, const int warnings);
+/** Purge all potentially remotely-detectable state held in the hidden
+ * service client code. Called on SIGNAL NEWNYM. */
+void
+rend_client_purge_state(void)
+{
+ rend_cache_purge();
+ rend_client_cancel_descriptor_fetches();
+ rend_client_purge_last_hid_serv_requests();
+}
+
/** Called when we've established a circuit to an introduction point:
* send the introduction request. */
void