summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2018-05-03 09:34:50 -0400
committerDavid Goulet <dgoulet@torproject.org>2018-05-03 09:34:50 -0400
commit319505d38c459ad446caefec5446d717c2d9e4e6 (patch)
tree69358046374510ac11a50ee93df8f24e624981d7
parent2e8eb1d5e32cc5849fc0676b5fa92b1606f2cae5 (diff)
downloadtor-319505d38c459ad446caefec5446d717c2d9e4e6.tar.gz
tor-319505d38c459ad446caefec5446d717c2d9e4e6.zip
hs-v3: Remove extra white-space and clarify comment
From Neel's latest patch on optimizing the hs_circ_service_get_intro_circ() digest calculation, remove an extra white-space and clarify a comment of the legacy key digest to inform when to use it. Signed-off-by: David Goulet <dgoulet@torproject.org>
-rw-r--r--src/or/hs_service.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/hs_service.h b/src/or/hs_service.h
index ea7ee9ecf2..5494b6f5fa 100644
--- a/src/or/hs_service.h
+++ b/src/or/hs_service.h
@@ -50,9 +50,9 @@ typedef struct hs_service_intro_point_t {
/* Legacy key if that intro point doesn't support v3. This should be used if
* the base object legacy flag is set. */
crypto_pk_t *legacy_key;
-
- /* Legacy key SHA1 public key digest. */
- uint8_t legacy_key_digest[DIGEST_LEN];
+ /* Legacy key SHA1 public key digest. This should be used only if the base
+ * object legacy flag is set. */
+ uint8_t legacy_key_digest[DIGEST_LEN];
/* Amount of INTRODUCE2 cell accepted from this intro point. */
uint64_t introduce2_count;