aboutsummaryrefslogtreecommitdiff
path: root/src/feature/hs/hs_cache.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2019-10-17 09:50:23 -0400
committerGeorge Kadianakis <desnacked@riseup.net>2019-11-18 19:06:43 +0200
commit68a004d147bd4bd245563b7b7ed2f97e1f333dd4 (patch)
treed5299bf08aed32c151a939ffd81841f9c36a9d47 /src/feature/hs/hs_cache.h
parent48a9f8a63f4d605e9bee5e7131b1f6db1ec95295 (diff)
downloadtor-68a004d147bd4bd245563b7b7ed2f97e1f333dd4.tar.gz
tor-68a004d147bd4bd245563b7b7ed2f97e1f333dd4.zip
hs-v3: Improve documentation of hs_cache_client_descriptor_t
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/hs/hs_cache.h')
-rw-r--r--src/feature/hs/hs_cache.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/feature/hs/hs_cache.h b/src/feature/hs/hs_cache.h
index 4fd9ac5445..a56e2cc6c6 100644
--- a/src/feature/hs/hs_cache.h
+++ b/src/feature/hs/hs_cache.h
@@ -114,8 +114,10 @@ typedef struct hs_cache_client_descriptor_t {
* using the next blinded key of the service. */
time_t expiration_ts;
- /** The cached descriptor, this object is the owner. It can't be NULL. A
- * cache object without a valid descriptor is not possible. */
+ /** The cached decoded descriptor, this object is the owner. This can be
+ * NULL if the descriptor couldn't be decoded due to missing or bad client
+ * authorization. It can be decoded later from the encoded_desc object if
+ * the proper client authorization is given tor. */
hs_descriptor_t *desc;
/** Encoded descriptor in string form. Can't be NULL. */