aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection_edge.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-09-05 13:19:59 -0400
committerNick Mathewson <nickm@torproject.org>2017-09-05 14:34:09 -0400
commitad9190404b1cbba3f7e17f8db20034e986093f21 (patch)
tree18e102503b6cff9c0ae9919ef5b42b242b957b71 /src/or/connection_edge.h
parentfead6449564f4d946662fc32e0f42bfe852f62a3 (diff)
downloadtor-ad9190404b1cbba3f7e17f8db20034e986093f21.tar.gz
tor-ad9190404b1cbba3f7e17f8db20034e986093f21.zip
Add a fuzzer for HTTP CONNECT
Diffstat (limited to 'src/or/connection_edge.h')
-rw-r--r--src/or/connection_edge.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/or/connection_edge.h b/src/or/connection_edge.h
index 9987f88b85..10ad97be47 100644
--- a/src/or/connection_edge.h
+++ b/src/or/connection_edge.h
@@ -89,9 +89,10 @@ int connection_ap_process_transparent(entry_connection_t *conn);
int address_is_invalid_destination(const char *address, int client);
-int connection_ap_rewrite_and_attach_if_allowed(entry_connection_t *conn,
- origin_circuit_t *circ,
- crypt_path_t *cpath);
+MOCK_DECL(int, connection_ap_rewrite_and_attach_if_allowed,
+ (entry_connection_t *conn,
+ origin_circuit_t *circ,
+ crypt_path_t *cpath));
int connection_ap_handshake_rewrite_and_attach(entry_connection_t *conn,
origin_circuit_t *circ,
crypt_path_t *cpath);
@@ -187,6 +188,8 @@ typedef struct {
STATIC void connection_ap_handshake_rewrite(entry_connection_t *conn,
rewrite_result_t *out);
+
+STATIC int connection_ap_process_http_connect(entry_connection_t *conn);
#endif
#endif