diff options
author | David Goulet <dgoulet@torproject.org> | 2017-01-16 13:29:03 -0500 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2017-07-13 16:49:08 -0400 |
commit | 765ed5dac160b28fb658560e8f39d1d7ab3d1c75 (patch) | |
tree | 6f101ed5f4b399c3c0c2faf5056c3ff600895fcf /src/or/hs_service.h | |
parent | 02e2edeb33224461d1fbb879722c0948171b9688 (diff) | |
download | tor-765ed5dac160b28fb658560e8f39d1d7ab3d1c75.tar.gz tor-765ed5dac160b28fb658560e8f39d1d7ab3d1c75.zip |
prop224: Add a init/free_all function for the whole subsystem
Introduces hs_init() located in hs_common.c which initialize the entire HS v3
subsystem. This is done _prior_ to the options being loaded because we need to
allocate global data structure before we load the configuration.
The hs_free_all() is added to release everything from tor_free_all().
Note that both functions do NOT handle v2 service subsystem but does handle
the common interface that both v2 and v3 needs such as the cache and
circuitmap.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/hs_service.h')
-rw-r--r-- | src/or/hs_service.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/hs_service.h b/src/or/hs_service.h index d29a4782cd..ec47cb72ae 100644 --- a/src/or/hs_service.h +++ b/src/or/hs_service.h @@ -193,6 +193,7 @@ typedef struct hs_service_t { /* API */ int hs_service_config_all(const or_options_t *options, int validate_only); +void hs_service_init(void); void hs_service_free_all(void); void hs_service_free(hs_service_t *service); |