summaryrefslogtreecommitdiff
path: root/src/feature/hs/hs_service.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2020-01-09 14:51:56 -0500
committerNick Mathewson <nickm@torproject.org>2020-01-21 10:31:29 -0500
commitef28afa2551a6827d85ceb00d8fe2a69d1605795 (patch)
treeb72a8826a7a8ef137e527fe616a6b42abda693b5 /src/feature/hs/hs_service.h
parentf1498e75ddf8e493edecf940616703c36fa17de8 (diff)
downloadtor-ef28afa2551a6827d85ceb00d8fe2a69d1605795.tar.gz
tor-ef28afa2551a6827d85ceb00d8fe2a69d1605795.zip
hs-v3: Add the Onion Balance config file option
At this commit, the service reads the config file and parse it to finally set the service config object with the options. Part of #32709 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/hs/hs_service.h')
-rw-r--r--src/feature/hs/hs_service.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/feature/hs/hs_service.h b/src/feature/hs/hs_service.h
index 8809411e01..bdc2bc3b64 100644
--- a/src/feature/hs/hs_service.h
+++ b/src/feature/hs/hs_service.h
@@ -248,10 +248,14 @@ typedef struct hs_service_config_t {
/** Does this service export the circuit ID of its clients? */
hs_circuit_id_protocol_t circuit_id_protocol;
- /* DoS defenses. For the ESTABLISH_INTRO cell extension. */
+ /** DoS defenses. For the ESTABLISH_INTRO cell extension. */
unsigned int has_dos_defense_enabled : 1;
uint32_t intro_dos_rate_per_sec;
uint32_t intro_dos_burst_per_sec;
+
+ /** If set, contains the Onion Balance master ed25519 public key (taken from
+ * an .onion addresses) that this tor instance serves as backend. */
+ smartlist_t *ob_master_pubkeys;
} hs_service_config_t;
/** Service state. */