summaryrefslogtreecommitdiff
path: root/src/or/hs_service.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2017-11-09 14:28:22 -0500
committerNick Mathewson <nickm@torproject.org>2017-12-05 19:39:46 -0500
commitf0e3331f3ca44aa8eb806487be2e03a2e9e52567 (patch)
tree92ed3a993e47c9c10a38c3e1bc40d969bbad0f31 /src/or/hs_service.h
parent5d180309ea907711a98da82f07a48646699d03b1 (diff)
downloadtor-f0e3331f3ca44aa8eb806487be2e03a2e9e52567.tar.gz
tor-f0e3331f3ca44aa8eb806487be2e03a2e9e52567.zip
hs-v3: Add ephemeral service support
The functions are now used by the ADD_ONION/DEL_ONION control port command as well. This commits makes them fully functionnal with hidden service v3. Part of #20699 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/hs_service.h')
-rw-r--r--src/or/hs_service.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/hs_service.h b/src/or/hs_service.h
index e78cc4c2b1..de04987c8b 100644
--- a/src/or/hs_service.h
+++ b/src/or/hs_service.h
@@ -273,6 +273,12 @@ void hs_service_intro_circ_has_closed(origin_circuit_t *circ);
char *hs_service_lookup_current_desc(const ed25519_public_key_t *pk);
+hs_service_add_ephemeral_status_t
+hs_service_add_ephemeral(ed25519_secret_key_t *sk, smartlist_t *ports,
+ int max_streams_per_rdv_circuit,
+ int max_streams_close_circuit, char **address_out);
+int hs_service_del_ephemeral(const char *address);
+
#ifdef HS_SERVICE_PRIVATE
#ifdef TOR_UNIT_TESTS