summaryrefslogtreecommitdiff
path: root/src/or/routerparse.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-01-30 08:40:46 -0500
committerNick Mathewson <nickm@torproject.org>2017-01-30 08:40:46 -0500
commit558c04f5b119b62f5a6ef00739468b31f65fcc19 (patch)
tree6e9b638f24d252a5bf2c5a8b779bc3707196e78a /src/or/routerparse.h
parent67eb6470d711b36d1b855e6423ce7bbb302af834 (diff)
parentd71fc474385281453eaa93522479d32af85c94ef (diff)
downloadtor-558c04f5b119b62f5a6ef00739468b31f65fcc19.tar.gz
tor-558c04f5b119b62f5a6ef00739468b31f65fcc19.zip
Merge branch 'combined-fuzzing-v4'
Diffstat (limited to 'src/or/routerparse.h')
-rw-r--r--src/or/routerparse.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/or/routerparse.h b/src/or/routerparse.h
index 9a3fadca1f..8eea989e31 100644
--- a/src/or/routerparse.h
+++ b/src/or/routerparse.h
@@ -110,7 +110,6 @@ STATIC int routerstatus_parse_guardfraction(const char *guardfraction_str,
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(const char *desc, const char *type);
STATIC void dump_desc_fifo_cleanup(void);
struct memarea_t;
STATIC routerstatus_t *routerstatus_parse_entry_from_string(
@@ -120,6 +119,12 @@ 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));
+MOCK_DECL(STATIC int, signed_digest_equals,
+ (const uint8_t *d1, const uint8_t *d2, size_t len));
#endif
#define ED_DESC_SIGNATURE_PREFIX "Tor router descriptor signature v1"