diff options
author | Isis Lovecruft <isis@torproject.org> | 2018-05-07 23:59:06 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-05-22 12:28:33 -0400 |
commit | 3283619acfcd9ad93edc891600991cff9ed3bed9 (patch) | |
tree | 3b45a7b8a31750c0d0daa3a39ad9cf8464b728c2 /src/or/protover.c | |
parent | 701c2b69f52cb4db46aa7455904e518b35fafc1a (diff) | |
download | tor-3283619acfcd9ad93edc891600991cff9ed3bed9.tar.gz tor-3283619acfcd9ad93edc891600991cff9ed3bed9.zip |
vote: TROVE-2018-005 Make DirAuths omit misbehaving routers from their vote.
Diffstat (limited to 'src/or/protover.c')
-rw-r--r-- | src/or/protover.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/or/protover.c b/src/or/protover.c index 97d436dd16..5cd9c96a1d 100644 --- a/src/or/protover.c +++ b/src/or/protover.c @@ -277,6 +277,18 @@ parse_protocol_list(const char *s) } /** + * Return true if the unparsed protover in <b>s</b> would contain a protocol + * name longer than MAX_PROTOCOL_NAME_LENGTH, and false otherwise. + */ +bool +protover_contains_long_protocol_names(const char *s) +{ + if (!parse_protocol_list(s)) + return true; + return false; +} + +/** * Given a protocol type and version number, return true iff we know * how to speak that protocol. */ |