]> git.ipfire.org Git - thirdparty/tor.git/commit
Add a create function for rend_data_t object
authorDavid Goulet <dgoulet@ev0ke.net>
Tue, 28 Apr 2015 15:01:58 +0000 (11:01 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 30 Apr 2015 16:35:20 +0000 (12:35 -0400)
commite6a581f126bac80d1d0c61ae026d81076f03b77b
tree1429e71164c15b67a5ec4bb81e303af0771902cf
parent7286a27cfc74ca81ed71a8579ded95b25564708a
Add a create function for rend_data_t object

Ground works for fixing #15816. This adds the rend_data_create() function in
order to have a single place where we initialize that data structure.

Furthermore, an array of descriptor IDs is added (one per replica) so we can
keep a copy of the current id in the object. It will be used to purge the
last hid serv request cache using those descriptor IDs. When they change,
they will be replaced and the old ones will be purged from the cache.

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
src/or/or.h
src/or/rendclient.c
src/or/rendcommon.c
src/or/rendcommon.h