summaryrefslogtreecommitdiff
path: root/src/or/hs_service.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2017-11-07 16:00:40 -0500
committerDavid Goulet <dgoulet@torproject.org>2017-11-20 11:02:30 -0500
commit0a3b2954487480114201758e02b3560e46ea1cca (patch)
tree0be4dc41e2d96d4c955f335e14e6e4aa28ed6a88 /src/or/hs_service.h
parente1d8e611c8fa1a3a1d3c2beb72c416c71f9cdf15 (diff)
downloadtor-0a3b2954487480114201758e02b3560e46ea1cca.tar.gz
tor-0a3b2954487480114201758e02b3560e46ea1cca.zip
hs-v3: Add a lookup service current descriptor function
This will be used by the control port command "GETINFO hs/service/desc/id/<ADDR>" which returns the encoded current descriptor for the given onion address. Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/hs_service.h')
-rw-r--r--src/or/hs_service.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/hs_service.h b/src/or/hs_service.h
index ed1053d850..e78cc4c2b1 100644
--- a/src/or/hs_service.h
+++ b/src/or/hs_service.h
@@ -271,6 +271,8 @@ int hs_service_receive_introduce2(origin_circuit_t *circ,
void hs_service_intro_circ_has_closed(origin_circuit_t *circ);
+char *hs_service_lookup_current_desc(const ed25519_public_key_t *pk);
+
#ifdef HS_SERVICE_PRIVATE
#ifdef TOR_UNIT_TESTS