diff options
author | George Kadianakis <desnacked@riseup.net> | 2015-01-29 14:57:00 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-02-18 09:09:33 -0500 |
commit | f4a63f8eabbdd842ebeb97aabba92ea47c37a607 (patch) | |
tree | 4e2cc251b585f2c941e8b3dafc0283d6e840ab2a /src/or/routerparse.h | |
parent | db805b91708c02e9b2b4d0c25ec17a45e81929aa (diff) | |
download | tor-f4a63f8eabbdd842ebeb97aabba92ea47c37a607.tar.gz tor-f4a63f8eabbdd842ebeb97aabba92ea47c37a607.zip |
Parse GuardFraction info from consensuses and votes.
Also introduce the UseGuardFraction torrc option which decides whether
clients should use guardfraction information found in the consensus.
Diffstat (limited to 'src/or/routerparse.h')
-rw-r--r-- | src/or/routerparse.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/or/routerparse.h b/src/or/routerparse.h index 18a7d2563c..fc21cb1041 100644 --- a/src/or/routerparse.h +++ b/src/or/routerparse.h @@ -85,5 +85,12 @@ int rend_parse_introduction_points(rend_service_descriptor_t *parsed, size_t intro_points_encoded_size); int rend_parse_client_keys(strmap_t *parsed_clients, const char *str); +#ifdef ROUTERPARSE_PRIVATE +STATIC int routerstatus_parse_guardfraction(const char *guardfraction_str, + networkstatus_t *vote, + vote_routerstatus_t *vote_rs, + routerstatus_t *rs); +#endif + #endif |