aboutsummaryrefslogtreecommitdiff
path: root/src/feature/hs/hs_service.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2020-01-27 17:06:36 +0200
committerGeorge Kadianakis <desnacked@riseup.net>2020-01-28 01:07:28 +0200
commitda15feb0d358fe95394aed75fae672ad8459ceee (patch)
tree88274d53469a1007566db793927f317275fac833 /src/feature/hs/hs_service.h
parent942543253a30b8231c46eeaeb44f7ba174152113 (diff)
downloadtor-da15feb0d358fe95394aed75fae672ad8459ceee.tar.gz
tor-da15feb0d358fe95394aed75fae672ad8459ceee.zip
Refresh OB keys when we build a new descriptor.
We now assign OB subcredentials to the service instead of computing them on the spot. See hs_ob_refresh_keys() for more details.
Diffstat (limited to 'src/feature/hs/hs_service.h')
-rw-r--r--src/feature/hs/hs_service.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/feature/hs/hs_service.h b/src/feature/hs/hs_service.h
index bdc2bc3b64..94a73b2fec 100644
--- a/src/feature/hs/hs_service.h
+++ b/src/feature/hs/hs_service.h
@@ -305,8 +305,13 @@ typedef struct hs_service_t {
/** Next descriptor. */
hs_service_descriptor_t *desc_next;
- /* XXX: Credential (client auth.) #20700. */
-
+ /* If this is an onionbalance instance, this is an array of subcredentials
+ * that should be used when decrypting an INTRO2 cell. If this is not an
+ * onionbalance instance, this is NULL.
+ * See [ONIONBALANCE] section in rend-spec-v3.txt for more details . */
+ hs_subcredential_t *ob_subcreds;
+ /* Number of OB subcredentials */
+ size_t n_ob_subcreds;
} hs_service_t;
/** For the service global hash map, we define a specific type for it which