diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-09-30 18:15:00 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-10-01 00:04:58 -0500 |
commit | fec3b3bb9389d9d9f927c370d560fc50ec65c93b (patch) | |
tree | 9b8ad08341e8663156592087ab276420edb5e26a /src/feature/dirparse/routerparse.h | |
parent | 6785aa4010c141ab8792e41745acc2267ce46ca4 (diff) | |
download | tor-fec3b3bb9389d9d9f927c370d560fc50ec65c93b.tar.gz tor-fec3b3bb9389d9d9f927c370d560fc50ec65c93b.zip |
Extract logic for dumping unparseable junk from routerparse.c
Diffstat (limited to 'src/feature/dirparse/routerparse.h')
-rw-r--r-- | src/feature/dirparse/routerparse.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/feature/dirparse/routerparse.h b/src/feature/dirparse/routerparse.h index 87c2a75aa5..51d39c6175 100644 --- a/src/feature/dirparse/routerparse.h +++ b/src/feature/dirparse/routerparse.h @@ -114,28 +114,10 @@ void routerparse_init(void); void routerparse_free_all(void); #ifdef ROUTERPARSE_PRIVATE -/* - * One entry in the list of dumped descriptors; filename dumped to, length, - * SHA-256 and timestamp. - */ - -typedef struct { - char *filename; - size_t len; - uint8_t digest_sha256[DIGEST256_LEN]; - time_t when; -} dumped_desc_t; - -EXTERN(uint64_t, len_descs_dumped) -EXTERN(smartlist_t *, descs_dumped) STATIC int routerstatus_parse_guardfraction(const char *guardfraction_str, networkstatus_t *vote, vote_routerstatus_t *vote_rs, routerstatus_t *rs); -MOCK_DECL(STATIC dumped_desc_t *, dump_desc_populate_one_file, - (const char *dirname, const char *f)); -STATIC void dump_desc_populate_fifo_from_directory(const char *dirname); -STATIC void dump_desc_fifo_cleanup(void); struct memarea_t; STATIC routerstatus_t *routerstatus_parse_entry_from_string( struct memarea_t *area, @@ -144,7 +126,6 @@ STATIC routerstatus_t *routerstatus_parse_entry_from_string( vote_routerstatus_t *vote_rs, int consensus_method, consensus_flavor_t flav); -MOCK_DECL(STATIC void,dump_desc,(const char *desc, const char *type)); MOCK_DECL(STATIC int, router_compute_hash_final,(char *digest, const char *start, size_t len, digest_algorithm_t alg)); |