diff options
author | teor <teor2345@gmail.com> | 2016-12-12 22:53:11 +1100 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-01-30 08:37:23 -0500 |
commit | 584d723e04751330a677e7ce3673fc665713ea0a (patch) | |
tree | e3377a01baed473e81966bf923aa8098d036c45e /src/or/directory.h | |
parent | f009b13029b57f9c89077a041124066f6e9ba38c (diff) | |
download | tor-584d723e04751330a677e7ce3673fc665713ea0a.tar.gz tor-584d723e04751330a677e7ce3673fc665713ea0a.zip |
Restrict fuzzing to the directory headers
Diffstat (limited to 'src/or/directory.h')
-rw-r--r-- | src/or/directory.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/or/directory.h b/src/or/directory.h index 15010d6ff7..8be1f8e76e 100644 --- a/src/or/directory.h +++ b/src/or/directory.h @@ -158,10 +158,14 @@ STATIC int directory_handle_command(dir_connection_t *conn); STATIC int parse_http_url(const char *headers, char **url); STATIC dirinfo_type_t dir_fetch_type(int dir_purpose, int router_purpose, const char *resource); -STATIC int directory_handle_command_get(dir_connection_t *conn, - const char *headers, - const char *req_body, - size_t req_body_len); +MOCK_DECL(STATIC int, directory_handle_command_get,(dir_connection_t *conn, + const char *headers, + const char *req_body, + size_t req_body_len)); +MOCK_DECL(STATIC int, directory_handle_command_post,(dir_connection_t *conn, + const char *headers, + const char *body, + size_t body_len)); STATIC int download_status_schedule_get_delay(download_status_t *dls, const smartlist_t *schedule, int min_delay, int max_delay, |