summaryrefslogtreecommitdiff
path: root/src/feature/dirparse
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-09-30 23:37:43 -0500
committerNick Mathewson <nickm@torproject.org>2018-10-01 00:09:00 -0500
commita77b2e984e0781215a03c205c69441b30749ed9b (patch)
treedf8fef4028ea095584ffe4537256c61964c16324 /src/feature/dirparse
parent82f4d3ca75566be89e2d26667691e742cd9b4637 (diff)
downloadtor-a77b2e984e0781215a03c205c69441b30749ed9b.tar.gz
tor-a77b2e984e0781215a03c205c69441b30749ed9b.zip
Remove router_get_dir_hash as unused.
Diffstat (limited to 'src/feature/dirparse')
-rw-r--r--src/feature/dirparse/routerparse.c11
-rw-r--r--src/feature/dirparse/routerparse.h1
2 files changed, 0 insertions, 12 deletions
diff --git a/src/feature/dirparse/routerparse.c b/src/feature/dirparse/routerparse.c
index 36fd1c13d1..b439b79de8 100644
--- a/src/feature/dirparse/routerparse.c
+++ b/src/feature/dirparse/routerparse.c
@@ -332,17 +332,6 @@ static addr_policy_t *router_parse_addr_policy_private(directory_token_t *tok);
static smartlist_t *find_all_exitpolicy(smartlist_t *s);
-/** Set <b>digest</b> to the SHA-1 digest of the hash of the directory in
- * <b>s</b>. Return 0 on success, -1 on failure.
- */
-int
-router_get_dir_hash(const char *s, char *digest)
-{
- return router_get_hash_impl(s, strlen(s), digest,
- "signed-directory","\ndirectory-signature",'\n',
- DIGEST_SHA1);
-}
-
/** Set <b>digest</b> to the SHA-1 digest of the hash of the first router in
* <b>s</b>. Return 0 on success, -1 on failure.
*/
diff --git a/src/feature/dirparse/routerparse.h b/src/feature/dirparse/routerparse.h
index b8858e561c..e6ab751fa8 100644
--- a/src/feature/dirparse/routerparse.h
+++ b/src/feature/dirparse/routerparse.h
@@ -17,7 +17,6 @@
enum networkstatus_type_t;
int router_get_router_hash(const char *s, size_t s_len, char *digest);
-int router_get_dir_hash(const char *s, char *digest);
int router_get_networkstatus_v3_hashes(const char *s,
common_digests_t *digests);
int router_get_networkstatus_v3_signed_boundaries(const char *s,