aboutsummaryrefslogtreecommitdiff
path: root/src/feature/hs/hs_control.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-02-24 17:17:16 -0500
committerNick Mathewson <nickm@torproject.org>2019-02-24 17:17:16 -0500
commit69238ca2da923c8a50d5c1007f3e702eea163b50 (patch)
tree280280b80dbe8642c5a87e2188529c6468af44b1 /src/feature/hs/hs_control.c
parent34601105a39236cf6b21c9fe2ba78733c7788ff3 (diff)
parentc985940de9ec743cbb3e9a3e32fd482bd859c9ed (diff)
downloadtor-69238ca2da923c8a50d5c1007f3e702eea163b50.tar.gz
tor-69238ca2da923c8a50d5c1007f3e702eea163b50.zip
Merge remote-tracking branch 'tor-github/pr/646'
Diffstat (limited to 'src/feature/hs/hs_control.c')
-rw-r--r--src/feature/hs/hs_control.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/feature/hs/hs_control.c b/src/feature/hs/hs_control.c
index 9970fdd123..d837c5beed 100644
--- a/src/feature/hs/hs_control.c
+++ b/src/feature/hs/hs_control.c
@@ -10,6 +10,7 @@
#include "feature/control/control.h"
#include "lib/crypt_ops/crypto_format.h"
#include "lib/crypt_ops/crypto_util.h"
+#include "feature/hs/hs_client.h"
#include "feature/hs/hs_common.h"
#include "feature/hs/hs_control.h"
#include "feature/hs/hs_descriptor.h"
@@ -259,3 +260,16 @@ hs_control_hspost_command(const char *body, const char *onion_address,
smartlist_free(hsdirs);
return ret;
}
+
+/* With a given <b>onion_identity_pk</b>, fetch its descriptor, optionally
+ * using the list of directory servers given in <b>hsdirs</b>, or a random
+ * server if it is NULL. This function calls hs_client_launch_v3_desc_fetch().
+ */
+void
+hs_control_hsfetch_command(const ed25519_public_key_t *onion_identity_pk,
+ const smartlist_t *hsdirs)
+{
+ tor_assert(onion_identity_pk);
+
+ hs_client_launch_v3_desc_fetch(onion_identity_pk, hsdirs);
+}