diff options
author | David Goulet <dgoulet@torproject.org> | 2017-08-29 16:02:13 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2017-08-29 16:02:13 -0400 |
commit | 0850ae50490419b3d071a18462253148ea29e62c (patch) | |
tree | 8cc1e7188f14941919bf5c73c12d10385e9ad0db /src/or/hs_client.c | |
parent | 209bfe715cc8c1c59b2578c406749a0d4a5bd8cb (diff) | |
download | tor-0850ae50490419b3d071a18462253148ea29e62c.tar.gz tor-0850ae50490419b3d071a18462253148ea29e62c.zip |
hs: Implement an HS client free all function
Called from main.c, the function for now purges the hidden service directory
request cache.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/hs_client.c')
-rw-r--r-- | src/or/hs_client.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/or/hs_client.c b/src/or/hs_client.c index 99be058eb7..19e20c0e8d 100644 --- a/src/or/hs_client.c +++ b/src/or/hs_client.c @@ -1251,3 +1251,11 @@ hs_client_reextend_intro_circuit(origin_circuit_t *circ) return ret; } +/* Release all the storage held by the client subsystem. */ +void +hs_client_free_all(void) +{ + /* Purge the hidden service request cache. */ + hs_purge_last_hid_serv_requests(); +} + |