diff options
author | David Goulet <dgoulet@torproject.org> | 2016-08-11 15:21:54 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2016-11-04 10:32:49 -0400 |
commit | 45a72356cbf085f02d92edcbd9f5a3ed129216cc (patch) | |
tree | 92581259d5566fa5be0195977564a2245757758e /src/or/hs_cache.c | |
parent | 1aeaba4906d9f0d8901f3ef928f2cbcd049f1140 (diff) | |
download | tor-45a72356cbf085f02d92edcbd9f5a3ed129216cc.tar.gz tor-45a72356cbf085f02d92edcbd9f5a3ed129216cc.zip |
prop224: Directory support for v3 descriptor publishing
Closes #19205
Signed-off-by: David Goulet <dgoulet@torproject.org>
Signed-off-by: George Kadianakis <desnacked@riseup.net>
Diffstat (limited to 'src/or/hs_cache.c')
-rw-r--r-- | src/or/hs_cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/hs_cache.c b/src/or/hs_cache.c index 40730bd435..9b68045e89 100644 --- a/src/or/hs_cache.c +++ b/src/or/hs_cache.c @@ -249,7 +249,7 @@ hs_cache_store_as_dir(const char *desc) * we are sure that the descriptor's version is supported else the * decoding would have failed. */ switch (dir_desc->plaintext_data->version) { - case 3: + case HS_VERSION_THREE: default: if (cache_store_v3_as_dir(dir_desc) < 0) { goto err; @@ -279,7 +279,7 @@ hs_cache_lookup_as_dir(uint32_t version, const char *query, tor_assert(hs_desc_is_supported_version(version)); switch (version) { - case 3: + case HS_VERSION_THREE: default: found = cache_lookup_v3_as_dir(query, desc_out); break; |