aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.h
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@torproject.org>2017-05-22 15:52:41 +0000
committerAlexander Færøy <ahf@torproject.org>2017-05-22 15:52:41 +0000
commit9604980733c30cabbdeee818e82ea647ace5b0c0 (patch)
tree2440c1320c2647ff0f22e3e3bed3881d31315370 /src/or/directory.h
parent9a50c731040fea3b85b0c84726d56194993f09e9 (diff)
downloadtor-9604980733c30cabbdeee818e82ea647ace5b0c0.tar.gz
tor-9604980733c30cabbdeee818e82ea647ace5b0c0.zip
Log a warning if we receive a disallowed compression method for an anonymous connection.
See: https://bugs.torproject.org/22305
Diffstat (limited to 'src/or/directory.h')
-rw-r--r--src/or/directory.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/directory.h b/src/or/directory.h
index fecc8bd912..14d5ae9ef4 100644
--- a/src/or/directory.h
+++ b/src/or/directory.h
@@ -164,6 +164,7 @@ STATIC int handle_get_hs_descriptor_v3(dir_connection_t *conn,
STATIC int directory_handle_command(dir_connection_t *conn);
STATIC char *accept_encoding_header(void);
STATIC int allowed_anonymous_connection_compression_method(compress_method_t);
+STATIC void warn_disallowed_anonymous_compression_method(compress_method_t);
#endif