diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-09-11 09:50:31 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-09-11 09:50:31 -0400 |
commit | 362bc880b1c4bbccba8698b872c16fc6a6da168e (patch) | |
tree | 243c1f3f2d07859811db59180994419adc3784ca /src/or/protover.h | |
parent | 67a5d4cb60a9f27e981b83195cf47183a7e9abcc (diff) | |
download | tor-362bc880b1c4bbccba8698b872c16fc6a6da168e.tar.gz tor-362bc880b1c4bbccba8698b872c16fc6a6da168e.zip |
Add a function to check for support for "protocol X or later"
Also, add unit tests for this new function and for the regular
"does this list include support for protocol X" code.
Diffstat (limited to 'src/or/protover.h')
-rw-r--r-- | src/or/protover.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/protover.h b/src/or/protover.h index ec8da1a0d0..7176459556 100644 --- a/src/or/protover.h +++ b/src/or/protover.h @@ -47,6 +47,9 @@ char *protover_compute_vote(const smartlist_t *list_of_proto_strings, const char *protover_compute_for_old_tor(const char *version); int protocol_list_supports_protocol(const char *list, protocol_type_t tp, uint32_t version); +int protocol_list_supports_protocol_or_later(const char *list, + protocol_type_t tp, + uint32_t version); void protover_free_all(void); |