diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-06-08 18:41:09 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-06-08 18:41:09 +0000 |
commit | 7a6f3cd223a34b76b7bc183f0465fcfdddc405b2 (patch) | |
tree | 8633623961b45fb2163d6c5a74ea7524929e4687 /src/or/or.h | |
parent | e766814903c4ee7a03653853a1f35ac8f6a26589 (diff) | |
download | tor-7a6f3cd223a34b76b7bc183f0465fcfdddc405b2.tar.gz tor-7a6f3cd223a34b76b7bc183f0465fcfdddc405b2.zip |
r13313@catbus: nickm | 2007-06-08 14:23:11 -0400
Refactor v3 vote generation code into "build a networkstatus_vote_t" and "format a networkstatus_vote_t". This should make testing possible.
svn:r10533
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/or.h b/src/or/or.h index 36bc9f21fd..be47e211d7 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -1333,7 +1333,7 @@ typedef struct networkstatus_vote_t { char *client_versions; char *server_versions; - char **known_flags; /* NULL-terminated */ + smartlist_t *known_flags; smartlist_t *voters; /* list of networkstatus_voter_info_t */ @@ -2743,6 +2743,9 @@ networkstatus_voter_info_t *networkstatus_get_voter_by_id( const char *identity); int networkstatus_check_consensus_signature(networkstatus_vote_t *consensus); +void authority_cert_free(authority_cert_t *cert); +authority_cert_t *authority_cert_dup(authority_cert_t *cert); + /********************************* dns.c ***************************/ int dns_init(void); @@ -3410,7 +3413,6 @@ networkstatus_t *networkstatus_parse_from_string(const char *s); networkstatus_vote_t *networkstatus_parse_vote_from_string(const char *s, int is_vote); -void authority_cert_free(authority_cert_t *cert); authority_cert_t *authority_cert_parse_from_string(const char *s, const char **end_of_string); |