summaryrefslogtreecommitdiff
path: root/src/or/hs_service.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2017-01-16 13:19:44 -0500
committerDavid Goulet <dgoulet@torproject.org>2017-07-13 16:49:08 -0400
commit02e2edeb33224461d1fbb879722c0948171b9688 (patch)
tree2f70e922c8feff7afa87b2903c4d59c8952340e7 /src/or/hs_service.h
parentb03853b65f109ed6a34ba2924fe3b00d56131ff5 (diff)
downloadtor-02e2edeb33224461d1fbb879722c0948171b9688.tar.gz
tor-02e2edeb33224461d1fbb879722c0948171b9688.zip
prop224: Add hs_config.{c|h} with a refactoring
Add the hs_config.{c|h} files contains everything that the HS subsystem needs to load and configure services. Ultimately, it should also contain client functions such as client authorization. This comes with a big refactoring of rend_config_services() which has now changed to only configure a single service and it is stripped down of the common directives which are now part of the generic handler. This is ground work for prop224 of course but only touches version 2 services and add XXX note for version 3. Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/hs_service.h')
-rw-r--r--src/or/hs_service.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/hs_service.h b/src/or/hs_service.h
index fa5dd541e3..d29a4782cd 100644
--- a/src/or/hs_service.h
+++ b/src/or/hs_service.h
@@ -192,6 +192,12 @@ typedef struct hs_service_t {
/* API */
+int hs_service_config_all(const or_options_t *options, int validate_only);
+void hs_service_free_all(void);
+
+void hs_service_free(hs_service_t *service);
+hs_service_t *hs_service_new(const or_options_t *options);
+
/* These functions are only used by unit tests and we need to expose them else
* hs_service.o ends up with no symbols in libor.a which makes clang throw a
* warning at compile time. See #21825. */