diff options
author | David Goulet <dgoulet@torproject.org> | 2017-09-12 12:24:26 -0400 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2017-09-12 21:34:26 +0300 |
commit | 6b4eace248272f4defae0f6cc9933588b1b498b3 (patch) | |
tree | 9e1ac44754af860125953f7fe8cac267e59fd335 /src/or/hs_client.h | |
parent | d71a00e91f3921f6bdf160811313e7b32f890b6c (diff) | |
download | tor-6b4eace248272f4defae0f6cc9933588b1b498b3.tar.gz tor-6b4eace248272f4defae0f6cc9933588b1b498b3.zip |
hs-v3: Stall SOCKS connection when no live consensus available
Fixes #23481
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/hs_client.h')
-rw-r--r-- | src/or/hs_client.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/or/hs_client.h b/src/or/hs_client.h index 5227704506..3ea2b8cdf9 100644 --- a/src/or/hs_client.h +++ b/src/or/hs_client.h @@ -13,6 +13,22 @@ #include "hs_descriptor.h" #include "hs_ident.h" +/* Status code of a descriptor fetch request. */ +typedef enum { + /* Something internally went wrong. */ + HS_CLIENT_FETCH_ERROR = -1, + /* The fetch request has been launched successfully. */ + HS_CLIENT_FETCH_LAUNCHED = 0, + /* We already have a usable descriptor. No fetch. */ + HS_CLIENT_FETCH_HAVE_DESC = 1, + /* No more HSDir available to query. */ + HS_CLIENT_FETCH_NO_HSDIRS = 2, + /* The fetch request is not allowed. */ + HS_CLIENT_FETCH_NOT_ALLOWED = 3, + /* We are missing information to be able to launch a request. */ + HS_CLIENT_FETCH_MISSING_INFO = 4, +} hs_client_fetch_status_t; + void hs_client_note_connection_attempt_succeeded( const edge_connection_t *conn); |