]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Correct documentation comments for fields formerly named accepted_intros
authorRobert Ransom <rransom.8774@gmail.com>
Sun, 27 Nov 2011 17:30:16 +0000 (09:30 -0800)
committerRobert Ransom <rransom.8774@gmail.com>
Sun, 27 Nov 2011 17:30:16 +0000 (09:30 -0800)
src/or/or.h
src/or/rendservice.c

index dcaea39d17c882b0afdb633dd329b89c02ee3023..3510ab0421e5b4e1c4c9833571ec69e660c8ff4f 100644 (file)
@@ -3508,8 +3508,8 @@ typedef struct rend_intro_point_t {
   /** (Service side only) A digestmap recording the INTRODUCE2 cells
    * this intro point's circuit has received.  Each key is the digest
    * of the RSA-encrypted part of a received INTRODUCE2 cell; each
-   * value is a pointer to the time_t at which the cell was
-   * received. */
+   * value is a pointer to the time_t at which the cell was received.
+   * This digestmap is used to prevent replay attacks. */
   digestmap_t *accepted_intro_rsa_parts;
 
   /** (Service side only) The time at which this intro point was first
index 2aa02f9e052cad8c6c836d70020704a79a25201e..2c54f3059d545f5c1bbce2819e21a4912ef78948 100644 (file)
@@ -89,8 +89,12 @@ typedef struct rend_service_t {
                          * up-to-date. */
   time_t next_upload_time; /**< Scheduled next hidden service descriptor
                             * upload time. */
-  /** Map from digests of Diffie-Hellman values INTRODUCE2 to time_t of when
-   * they were received; used to prevent replays. */
+  /** Map from digests of Diffie-Hellman values INTRODUCE2 to time_t
+   * of when they were received.  Clients may send INTRODUCE1 cells
+   * for the same rendezvous point through two or more different
+   * introduction points; when they do, this digestmap keeps us from
+   * launching multiple simultaneous attempts to connect to the same
+   * rend point. */
   digestmap_t *accepted_intro_dh_parts;
   /** Time at which we last removed expired values from
    * accepted_intro_dh_parts. */