diff options
author | David Goulet <dgoulet@torproject.org> | 2017-01-16 13:19:44 -0500 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2017-07-13 16:49:08 -0400 |
commit | 02e2edeb33224461d1fbb879722c0948171b9688 (patch) | |
tree | 2f70e922c8feff7afa87b2903c4d59c8952340e7 /src/or/hs_common.h | |
parent | b03853b65f109ed6a34ba2924fe3b00d56131ff5 (diff) | |
download | tor-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_common.h')
-rw-r--r-- | src/or/hs_common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/hs_common.h b/src/or/hs_common.h index 872fed763a..abc44c09d1 100644 --- a/src/or/hs_common.h +++ b/src/or/hs_common.h @@ -16,6 +16,9 @@ #define HS_VERSION_TWO 2 /* Version 3 of the protocol (prop224). */ #define HS_VERSION_THREE 3 +/* Earliest and latest version we support. */ +#define HS_VERSION_MIN HS_VERSION_TWO +#define HS_VERSION_MAX HS_VERSION_THREE /** Try to maintain this many intro points per service by default. */ #define NUM_INTRO_POINTS_DEFAULT 3 |