diff options
author | David Goulet <dgoulet@torproject.org> | 2017-04-06 14:58:13 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-08-08 20:29:33 -0400 |
commit | 77b279c35c5ecf83c045f9c1d613544d958aef81 (patch) | |
tree | c7250d13e536263afc63bda00e17815b25f8464b /src/or/hs_service.h | |
parent | 27dd1a716c63bcdda31f24ed08d259b4a91aa1c3 (diff) | |
download | tor-77b279c35c5ecf83c045f9c1d613544d958aef81.tar.gz tor-77b279c35c5ecf83c045f9c1d613544d958aef81.zip |
prop224: Add service replay cache
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/hs_service.h')
-rw-r--r-- | src/or/hs_service.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/or/hs_service.h b/src/or/hs_service.h index f12094a927..8776a4412c 100644 --- a/src/or/hs_service.h +++ b/src/or/hs_service.h @@ -181,6 +181,13 @@ typedef struct hs_service_state_t { /* Indicate that the service has entered the overlap period. We use this * flag to check for descriptor rotation. */ unsigned int in_overlap_period : 1; + + /* Replay cache tracking the REND_COOKIE found in INTRODUCE2 cell to detect + * repeats. Clients may send INTRODUCE1 cells for the same rendezvous point + * through two or more different introduction points; when they do, this + * keeps us from launching multiple simultaneous attempts to connect to the + * same rend point. */ + replaycache_t *replay_cache_rend_cookie; } hs_service_state_t; /* Representation of a service running on this tor instance. */ |