aboutsummaryrefslogtreecommitdiff
path: root/src/or/protover.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-08-19 18:04:02 -0400
committerNick Mathewson <nickm@torproject.org>2016-09-26 10:56:49 -0700
commitc1be8f9d574dace9941c532ce5d612c315bc74c7 (patch)
tree75e5731d0e46c6f662ac6118ffd1bf4fa8f017c5 /src/or/protover.h
parent7f718c46f355e194fb6ae8c8aabb72d2492c4d3f (diff)
downloadtor-c1be8f9d574dace9941c532ce5d612c315bc74c7.tar.gz
tor-c1be8f9d574dace9941c532ce5d612c315bc74c7.zip
Basic backend for the protocol-versions voting algorithm.
[This is a brute-force method that potentially uses way too much RAM. Need to rethink this a little. Right now you can DOS an authority by saying "Foo=1-4294967295".]
Diffstat (limited to 'src/or/protover.h')
-rw-r--r--src/or/protover.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/protover.h b/src/or/protover.h
index d12a067578..f809a8dab8 100644
--- a/src/or/protover.h
+++ b/src/or/protover.h
@@ -27,6 +27,9 @@ int protover_all_supported(const char *s, char **missing);
int protover_is_supported_here(protocol_type_t pr, uint32_t ver);
const char *get_supported_protocols(void);
+char * compute_protover_vote(const smartlist_t *list_of_proto_strings,
+ int threshold);
+
void protover_free_all(void);
#ifdef PROTOVER_PRIVATE