diff options
author | Kevin Butler <haqkrs@gmail.com> | 2013-09-03 01:14:43 +0100 |
---|---|---|
committer | Kevin Butler <haqkrs@gmail.com> | 2013-09-03 01:14:43 +0100 |
commit | 5327605caa5863ec9593fd0899425cd971a9d525 (patch) | |
tree | beda4e3d2f8aebd32716ab6fc0e9862b1d1d04a6 /src/or/directory.h | |
parent | 00bcc25d05dc0273323a2cae20c6aa62afd4b50a (diff) | |
download | tor-5327605caa5863ec9593fd0899425cd971a9d525.tar.gz tor-5327605caa5863ec9593fd0899425cd971a9d525.zip |
Tougher validation for parsing urls from HTTP headers. Fixes #2767.
Diffstat (limited to 'src/or/directory.h')
-rw-r--r-- | src/or/directory.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/directory.h b/src/or/directory.h index 41f18a1725..0453160f7a 100644 --- a/src/or/directory.h +++ b/src/or/directory.h @@ -118,5 +118,10 @@ download_status_mark_impossible(download_status_t *dl) int download_status_get_n_failures(const download_status_t *dls); +#ifdef TOR_UNIT_TESTS +/* Used only by directory.c and test_dir.c */ +STATIC int parse_http_url(const char *headers, char **url); +#endif + #endif |