aboutsummaryrefslogtreecommitdiff
path: root/src/feature/hs/hs_client.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2019-05-28 13:00:57 -0400
committerGeorge Kadianakis <desnacked@riseup.net>2019-11-18 19:06:43 +0200
commit96a53221b08436d1fa97e3024f46039591f988c7 (patch)
treef4e79db3cd6a5a672a5d953a8de5db9c3457f179 /src/feature/hs/hs_client.h
parent52bf54ecd4aa48a95f16c2e678ede7d24ef4d322 (diff)
downloadtor-96a53221b08436d1fa97e3024f46039591f988c7.tar.gz
tor-96a53221b08436d1fa97e3024f46039591f988c7.zip
hs-v3: Keep descriptor in cache if client auth is missing or bad
We now keep the descriptor in the cache, obviously not decoded, if it can't be decrypted for which we believe client authorization is missing or unusable (bad). This way, it can be used later once the client authorization are added or updated. Part of #30382 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/hs/hs_client.h')
-rw-r--r--src/feature/hs/hs_client.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/feature/hs/hs_client.h b/src/feature/hs/hs_client.h
index 69e48ca31b..0e22a2e044 100644
--- a/src/feature/hs/hs_client.h
+++ b/src/feature/hs/hs_client.h
@@ -48,7 +48,7 @@ void hs_client_launch_v3_desc_fetch(
const ed25519_public_key_t *onion_identity_pk,
const smartlist_t *hsdirs);
-int hs_client_decode_descriptor(
+hs_desc_decode_status_t hs_client_decode_descriptor(
const char *desc_str,
const ed25519_public_key_t *service_identity_pk,
hs_descriptor_t **desc);