diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-08-25 11:18:05 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-09-26 10:56:50 -0700 |
commit | c6a2204e23db9ba462b1e8601897b3cadf6a0a03 (patch) | |
tree | 37467711adc1c524e50f87563eddc8f56d0ac04f /src/or/protover.h | |
parent | a232161f7beeecebf31b2259a571e8b26cb0b541 (diff) | |
download | tor-c6a2204e23db9ba462b1e8601897b3cadf6a0a03.tar.gz tor-c6a2204e23db9ba462b1e8601897b3cadf6a0a03.zip |
Add code to infer protocol versions for old Tor versions.
Diffstat (limited to 'src/or/protover.h')
-rw-r--r-- | src/or/protover.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/protover.h b/src/or/protover.h index f809a8dab8..d378627759 100644 --- a/src/or/protover.h +++ b/src/or/protover.h @@ -4,6 +4,9 @@ #include "container.h" +/* This is a guess. */ +#define FIRST_TOR_VERSION_TO_ADVERTISE_PROTOCOLS "0.2.9.3-alpha" + typedef enum protocol_type_t { PRT_LINK, PRT_LINKAUTH, @@ -29,6 +32,8 @@ const char *get_supported_protocols(void); char * compute_protover_vote(const smartlist_t *list_of_proto_strings, int threshold); +const char *protover_compute_for_old_tor(const char *version); + void protover_free_all(void); |