aboutsummaryrefslogtreecommitdiff
path: root/src/or/hs_cell.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2017-08-08 11:51:16 +0300
committerNick Mathewson <nickm@torproject.org>2017-08-08 20:29:35 -0400
commit0a0bbfe96fe425f27641f86fabd19f65a551ac6c (patch)
treea6962126db56d185811f7fbe213fc14eac0a9e81 /src/or/hs_cell.c
parentff249ee4a6ea665bb7ed1c7ab53d4d6b0eb9db78 (diff)
downloadtor-0a0bbfe96fe425f27641f86fabd19f65a551ac6c.tar.gz
tor-0a0bbfe96fe425f27641f86fabd19f65a551ac6c.zip
Add note about handling INTRODUCE2 cells.
Also fix a check-spaces instance.
Diffstat (limited to 'src/or/hs_cell.c')
-rw-r--r--src/or/hs_cell.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/hs_cell.c b/src/or/hs_cell.c
index 064e26334d..a0e9074601 100644
--- a/src/or/hs_cell.c
+++ b/src/or/hs_cell.c
@@ -210,6 +210,11 @@ build_legacy_establish_intro(const char *circ_nonce, crypto_pk_t *enc_key,
* service and circuit which are used only for logging purposes. The resulting
* parsed cell is put in cell_ptr_out.
*
+ * This function only parses prop224 INTRODUCE2 cells even when the intro point
+ * is a legacy intro point. That's because intro points don't actually care
+ * about the contents of the introduce cell. Legacy INTRODUCE cells are only
+ * used by the legacy system now.
+ *
* Return 0 on success else a negative value and cell_ptr_out is untouched. */
static int
parse_introduce2_cell(const hs_service_t *service,