summaryrefslogtreecommitdiff
path: root/src/feature/dirclient
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2021-02-23 14:09:03 -0500
committerNick Mathewson <nickm@torproject.org>2021-02-24 10:23:20 -0500
commit4e977cce40ed95f4f25f8511eb8791072d691c93 (patch)
tree61dc8f8178c9c51c71a7b2f8915591a655f7e1fc /src/feature/dirclient
parent97e51dd01b228ecb72c912c6cf3ffae6334c8d07 (diff)
downloadtor-4e977cce40ed95f4f25f8511eb8791072d691c93.tar.gz
tor-4e977cce40ed95f4f25f8511eb8791072d691c93.zip
Add support for knowing multiple HTTP DirPorts for an authority.
(These aren't yet set or used.)
Diffstat (limited to 'src/feature/dirclient')
-rw-r--r--src/feature/dirclient/dir_server_st.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/feature/dirclient/dir_server_st.h b/src/feature/dirclient/dir_server_st.h
index 57530a571b..d1ecbcf515 100644
--- a/src/feature/dirclient/dir_server_st.h
+++ b/src/feature/dirclient/dir_server_st.h
@@ -16,6 +16,8 @@
#include "core/or/or.h"
#include "feature/nodelist/routerstatus_st.h"
+struct smartlist_t;
+
/** Represents information about a single trusted or fallback directory
* server. */
struct dir_server_t {
@@ -48,6 +50,10 @@ struct dir_server_t {
time_t addr_current_at; /**< When was the document that we derived the
* address information from published? */
+ /** Authority only. Can be null. If present, a list of auth_dirport_t
+ * representing HTTP dirports for this authority. */
+ struct smartlist_t *auth_dirports;
+
routerstatus_t fake_status; /**< Used when we need to pass this trusted
* dir_server_t to
* directory_request_set_routerstatus.