summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-08-20 11:39:22 -0400
committerNick Mathewson <nickm@torproject.org>2009-10-15 15:17:13 -0400
commita7ba02f3f1dc267be81bf36f16bc1e69b34af050 (patch)
treef9bc22a0019482fa9653a05dfa71d34eab39ffef /src/or/or.h
parentbdf48393956db2827eb4340e2484cc28282b3f34 (diff)
downloadtor-a7ba02f3f1dc267be81bf36f16bc1e69b34af050.tar.gz
tor-a7ba02f3f1dc267be81bf36f16bc1e69b34af050.zip
Add ability to parse one or more m line from a vote.
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h
index e7e3869793..2c795421db 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -1557,6 +1557,14 @@ typedef struct routerstatus_t {
} routerstatus_t;
+/**DOCDOC*/
+typedef struct microdescriptor_t {
+ crypto_pk_env_t *onion_pkey;
+ smartlist_t *family;
+ char *exitsummary; /**< exit policy summary -
+ * XXX weasel: this probably should not stay a string. */
+} microdescriptor_t;
+
/** How many times will we try to download a router's descriptor before giving
* up? */
#define MAX_ROUTERDESC_DOWNLOAD_FAILURES 8
@@ -1599,6 +1607,11 @@ typedef struct networkstatus_v2_t {
* sorted by identity_digest. */
} networkstatus_v2_t;
+typedef struct vote_microdesc_hash_t {
+ struct vote_microdesc_hash_t *next;
+ char *microdesc_hash_line;
+} vote_microdesc_hash_t;
+
/** The claim about a single router, made in a vote. */
typedef struct vote_routerstatus_t {
routerstatus_t status; /**< Underlying 'status' object for this router.
@@ -1607,6 +1620,7 @@ typedef struct vote_routerstatus_t {
* networkstatus_t.known_flags. */
char *version; /**< The version that the authority says this router is
* running. */
+ vote_microdesc_hash_t *microdesc;
} vote_routerstatus_t;
/** Information about a single voter in a vote or a consensus. */