mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 22:58:50 +01:00
Remove router_get_dir_hash as unused.
This commit is contained in:
parent
82f4d3ca75
commit
a77b2e984e
2 changed files with 0 additions and 12 deletions
|
@ -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);
|
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
|
/** 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.
|
* <b>s</b>. Return 0 on success, -1 on failure.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
enum networkstatus_type_t;
|
enum networkstatus_type_t;
|
||||||
|
|
||||||
int router_get_router_hash(const char *s, size_t s_len, char *digest);
|
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,
|
int router_get_networkstatus_v3_hashes(const char *s,
|
||||||
common_digests_t *digests);
|
common_digests_t *digests);
|
||||||
int router_get_networkstatus_v3_signed_boundaries(const char *s,
|
int router_get_networkstatus_v3_signed_boundaries(const char *s,
|
||||||
|
|
Loading…
Add table
Reference in a new issue