summaryrefslogtreecommitdiff
path: root/src/feature/nodelist/routerlist.h
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2019-06-06 08:52:13 +1000
committerteor <teor@torproject.org>2019-06-06 17:26:23 +1000
commit19bf5806adb80e513bb2707a1686216225fef420 (patch)
tree07cfe5b06c15617f369cf71f32069cceefb9d2aa /src/feature/nodelist/routerlist.h
parenta4ea335a6906eb4f8f58b5cf458cf290d322d10f (diff)
downloadtor-19bf5806adb80e513bb2707a1686216225fef420.tar.gz
tor-19bf5806adb80e513bb2707a1686216225fef420.zip
dirauth: Return a distinct status when formatting annotations fails
Adds ROUTER_AUTHDIR_BUG_ANNOTATIONS to was_router_added_t. The out-of-order numbering is deliberate: it will be fixed by later commits for 16564. Fixes bug 30780; bugfix on 0.2.0.8-alpha.
Diffstat (limited to 'src/feature/nodelist/routerlist.h')
-rw-r--r--src/feature/nodelist/routerlist.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/feature/nodelist/routerlist.h b/src/feature/nodelist/routerlist.h
index d7f44cb807..dc9203e015 100644
--- a/src/feature/nodelist/routerlist.h
+++ b/src/feature/nodelist/routerlist.h
@@ -39,7 +39,10 @@ typedef enum was_router_added_t {
* OLD_ROUTER_DESC_MAX_AGE. */
ROUTER_WAS_TOO_OLD = -7, /* note contrast with 'ROUTER_IS_ALREADY_KNOWN' */
/* Some certs on this router are expired. */
- ROUTER_CERTS_EXPIRED = -8
+ ROUTER_CERTS_EXPIRED = -8,
+ /* We couldn't format the annotations for this router. This is a directory
+ * authority bug. */
+ ROUTER_AUTHDIR_BUG_ANNOTATIONS = -10
} was_router_added_t;
/** How long do we avoid using a directory server after it's given us a 503? */