aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/protover.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2021-11-05 10:10:24 -0400
committerDavid Goulet <dgoulet@torproject.org>2021-11-05 10:13:47 -0400
commit3d1a49908c2727746928d40bc71da0373aad7fcf (patch)
treee1e930dcd38be6a26fd6ac9b7409a7ff29de5c7e /src/core/or/protover.h
parent7c085490f5324f374dd7caa570dff5902f0e32cc (diff)
downloadtor-3d1a49908c2727746928d40bc71da0373aad7fcf.tar.gz
tor-3d1a49908c2727746928d40bc71da0373aad7fcf.zip
protover: Move all hardcoded lists in one place
This also moves the warnings and add some theatrical effect around the code so anyone modifying those list should notice the warnings signs and read the comment accordingly. Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/core/or/protover.h')
-rw-r--r--src/core/or/protover.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/or/protover.h b/src/core/or/protover.h
index 7e181ba97a..c99dfe40ae 100644
--- a/src/core/or/protover.h
+++ b/src/core/or/protover.h
@@ -49,6 +49,10 @@ bool protover_contains_long_protocol_names(const char *s);
int protover_all_supported(const char *s, char **missing);
int protover_is_supported_here(protocol_type_t pr, uint32_t ver);
const char *protover_get_supported_protocols(void);
+const char *protover_get_recommended_client_protocols(void);
+const char *protover_get_recommended_relay_protocols(void);
+const char *protover_get_required_client_protocols(void);
+const char *protover_get_required_relay_protocols(void);
char *protover_compute_vote(const struct smartlist_t *list_of_proto_strings,
int threshold);