tor/src
David Goulet 0565f5a3bb hs: Make the service list pruning function public
The reason for making the temporary list public is to keep it encapsulated in
the rendservice subsystem so the prop224 code does not have direct access to
it and can only affect it through the rendservice pruning function.

It also has been modified to not take list as arguments but rather use the
global lists (main and temporary ones) because prop224 code will call it to
actually prune the rendservice's lists. The function does the needed rotation
of pointers between those lists and then prune if needed.

In order to make the unit test work and not completely horrible, there is a
"impl_" version of the function that doesn't free memory, it simply moves
pointers around. It is directly used in the unit test and two setter functions
for those lists' pointer have been added only for unit test.

Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-04-13 16:25:49 -04:00
..
common Explain config_line_find() behavior on duplicates. 2017-04-06 11:48:41 -04:00
config Merge branch 'maint-0.2.9' into maint-0.3.0 2017-04-06 08:32:04 -04:00
ext Run the copyright update script. 2017-03-15 16:13:17 -04:00
or hs: Make the service list pruning function public 2017-04-13 16:25:49 -04:00
test hs: Make the service list pruning function public 2017-04-13 16:25:49 -04:00
tools Run the copyright update script. 2017-03-15 16:13:17 -04:00
trunnel trunnel: Move ESTABLISH_INTRO cell sig_len after the end_sig_fields 2016-12-16 12:21:07 -05:00
win32 bump to 0.3.0.5-rc-dev 2017-04-05 10:03:09 -04:00
include.am Fuzzing: Add an initial fuzzing tool, for descriptors. 2016-12-19 15:34:55 -05:00