summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2022-06-28 11:42:35 -0400
committerMicah Elizabeth Scott <beth@torproject.org>2023-05-10 07:37:11 -0700
commit8b41e09a775e882096364210317813c830160a5b (patch)
tree9ffc826432bac77288a360d18e1d5b1f0409342a /src/core
parent26957b47ac8aff33e8c6a6de2a227c0182749206 (diff)
downloadtor-8b41e09a775e882096364210317813c830160a5b.tar.gz
tor-8b41e09a775e882096364210317813c830160a5b.zip
hs: Client now solve PoW if present
At this commit, the tor main loop solves it. We might consider moving this to the CPU pool at some point. Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/core')
-rw-r--r--src/core/or/origin_circuit_st.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/or/origin_circuit_st.h b/src/core/or/origin_circuit_st.h
index c5c255bb49..fd5424c450 100644
--- a/src/core/or/origin_circuit_st.h
+++ b/src/core/or/origin_circuit_st.h
@@ -212,6 +212,12 @@ struct origin_circuit_t {
* (in host byte order) for response comparison. */
uint32_t pathbias_probe_nonce;
+ /** Set iff this is a hidden-service circuit for a HS with PoW defenses
+ * enabled, so that we know to be more lenient with timing out the
+ * circuit-build to allow the service time to work through the queue of
+ * requests. */
+ unsigned int hs_with_pow_circ : 1;
+
/** Set iff this circuit has been given a relaxed timeout because
* no circuits have opened. Used to prevent spamming logs. */
unsigned int relaxed_timeout : 1;