aboutsummaryrefslogtreecommitdiff
path: root/src/or/hs_common.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2016-11-07 14:03:32 -0500
committerDavid Goulet <dgoulet@torproject.org>2016-11-07 14:03:32 -0500
commit4ff534495ff430e0de3ca96a7a5a7a552853dc42 (patch)
treefe0f989350f94218875fa70454ac16b472d14278 /src/or/hs_common.c
parent89edef6afbfc701fab5a8ce1f3d7399f7c3261c7 (diff)
downloadtor-4ff534495ff430e0de3ca96a7a5a7a552853dc42.tar.gz
tor-4ff534495ff430e0de3ca96a7a5a7a552853dc42.zip
hs: Document arguments of rend_data_*_create()
Fixes #20567 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/hs_common.c')
-rw-r--r--src/or/hs_common.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/or/hs_common.c b/src/or/hs_common.c
index b7ee888842..7dd97e7c7c 100644
--- a/src/or/hs_common.c
+++ b/src/or/hs_common.c
@@ -135,7 +135,9 @@ compute_desc_id(rend_data_t *rend_data)
/* Allocate and initialize a rend_data_t object for a service using the
* provided arguments. All arguments are optional (can be NULL), except from
- * <b>onion_address</b> which MUST be set.
+ * <b>onion_address</b> which MUST be set. The <b>pk_digest</b> is the hash of
+ * the service private key. The <b>cookie</b> is the rendezvous cookie and
+ * <b>auth_type</b> is which authentiation this service is configured with.
*
* Return a valid rend_data_t pointer. This only returns a version 2 object of
* rend_data_t. */
@@ -163,10 +165,11 @@ rend_data_service_create(const char *onion_address, const char *pk_digest,
return rend_data;
}
-/* Allocate and initialize a rend_data_t object for a client request using
- * the given arguments. Either an onion address or a descriptor ID is
- * needed. Both can be given but only the onion address will be used to make
- * the descriptor fetch.
+/* Allocate and initialize a rend_data_t object for a client request using the
+ * given arguments. Either an onion address or a descriptor ID is needed. Both
+ * can be given but in this case only the onion address will be used to make
+ * the descriptor fetch. The <b>cookie</b> is the rendezvous cookie and
+ * <b>auth_type</b> is which authentiation the service is configured with.
*
* Return a valid rend_data_t pointer or NULL on error meaning the
* descriptor IDs couldn't be computed from the given data. */