diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-01-15 11:08:22 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-01-15 11:08:22 -0500 |
commit | 537214d10e79ddd2681bea6b4bb839e8af80315c (patch) | |
tree | 31f8323ca109b1e083c49d8999d6c28c2868d1de /src/or/directory.h | |
parent | d3e7803c1cd8f40d929729d771ed2565710291ab (diff) | |
parent | fcd7923a966893131cf4e8f60a6ac9a0f46251b8 (diff) | |
download | tor-537214d10e79ddd2681bea6b4bb839e8af80315c.tar.gz tor-537214d10e79ddd2681bea6b4bb839e8af80315c.zip |
Merge remote-tracking branch 'twstrike/directory-tests'
Diffstat (limited to 'src/or/directory.h')
-rw-r--r-- | src/or/directory.h | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/src/or/directory.h b/src/or/directory.h index 28442b9d4d..c5b5a5afe1 100644 --- a/src/or/directory.h +++ b/src/or/directory.h @@ -39,14 +39,16 @@ typedef enum { DIRIND_ANON_DIRPORT, } dir_indirection_t; -void directory_initiate_command_routerstatus(const routerstatus_t *status, - uint8_t dir_purpose, - uint8_t router_purpose, - dir_indirection_t indirection, - const char *resource, - const char *payload, - size_t payload_len, - time_t if_modified_since); +MOCK_DECL(void, directory_initiate_command_routerstatus, + (const routerstatus_t *status, + uint8_t dir_purpose, + uint8_t router_purpose, + dir_indirection_t indirection, + const char *resource, + const char *payload, + size_t payload_len, + time_t if_modified_since)); + void directory_initiate_command_routerstatus_rend(const routerstatus_t *status, uint8_t dir_purpose, uint8_t router_purpose, @@ -147,6 +149,13 @@ STATIC int connection_dir_would_close_consensus_conn_helper(void); STATIC int download_status_schedule_get_delay(download_status_t *dls, const smartlist_t *schedule, time_t now); + +STATIC char* authdir_type_to_string(dirinfo_type_t auth); +STATIC const char * dir_conn_purpose_to_string(int purpose); +STATIC int should_use_directory_guards(const or_options_t *options); +STATIC zlib_compression_level_t choose_compression_level(ssize_t n_bytes); +STATIC const smartlist_t *find_dl_schedule(download_status_t *dls, + const or_options_t *options); #endif #endif |