diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-09-10 15:23:39 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-12-06 11:23:43 -0500 |
commit | 5c51b3f1f0d4c394392aa6fce89bbe0960117771 (patch) | |
tree | 8c4c512f91e3d5e22ab246205f6030684a33b4d6 /src/or/or.h | |
parent | 404e3dd48149434a22c6b27bc253afd78ce5a9bf (diff) | |
download | tor-5c51b3f1f0d4c394392aa6fce89bbe0960117771.tar.gz tor-5c51b3f1f0d4c394392aa6fce89bbe0960117771.zip |
Start refactoring trusted_dir_servers into trusted and fallback lists
We use trusted_dir_server_t for two pieces of functionality: a list of
all directory authorities, and a list of initial places to look for
a directory. With this patch we start to separate those two roles.
There is as of now no actual way to be a fallback directory without being
an authority.
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h index 2ac9f6bdeb..837874f8d3 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -4499,6 +4499,8 @@ typedef struct trusted_dir_server_t { * high-security) identity key. */ unsigned int is_running:1; /**< True iff we think this server is running. */ + unsigned int is_authority:1; /**< True iff this is a directory authority + * of some kind. */ /** True iff this server has accepted the most recent server descriptor * we tried to upload to it. */ |