diff options
author | David Goulet <dgoulet@torproject.org> | 2017-07-13 08:51:14 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2017-07-13 16:50:09 -0400 |
commit | 5d64ceb12defdc7db8402088fb2946c35274636a (patch) | |
tree | c89ac5b35065c96f874789b88c120b4484df31e9 /src/or/hs_service.h | |
parent | 3eeebd1b0ca43bc2523fb39349078277a40d4116 (diff) | |
download | tor-5d64ceb12defdc7db8402088fb2946c35274636a.tar.gz tor-5d64ceb12defdc7db8402088fb2946c35274636a.zip |
prop224: Move service version into config object
It makes more sense to have the version in the configuration object of the
service because it is afterall a torrc option (HiddenServiceVersion).
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/hs_service.h')
-rw-r--r-- | src/or/hs_service.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/or/hs_service.h b/src/or/hs_service.h index a98884f6bc..54b9e69724 100644 --- a/src/or/hs_service.h +++ b/src/or/hs_service.h @@ -112,6 +112,10 @@ typedef struct hs_service_keys_t { * set by the configuration file or by the control port. Nothing else should * change those values. */ typedef struct hs_service_config_t { + /* Protocol version of the service. Specified by HiddenServiceVersion + * option. */ + uint32_t version; + /* List of rend_service_port_config_t */ smartlist_t *ports; @@ -170,9 +174,6 @@ typedef struct hs_service_state_t { /* Representation of a service running on this tor instance. */ typedef struct hs_service_t { - /* Protocol version of the service. Specified by HiddenServiceVersion. */ - uint32_t version; - /* Onion address base32 encoded and NUL terminated. We keep it for logging * purposes so we don't have to build it everytime. */ char onion_address[HS_SERVICE_ADDR_LEN_BASE32 + 1]; |