mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
Remove the now-unused router_get_networkstatus_v3_hash
This commit is contained in:
parent
c35ef8e6e9
commit
6706a05b79
@ -662,18 +662,6 @@ router_get_networkstatus_v3_hashes(const char *s, digests_t *digests)
|
|||||||
' ');
|
' ');
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Set <b>digest</b> to the SHA-1 digest of the hash of the network-status
|
|
||||||
* string in <b>s</b>. Return 0 on success, -1 on failure. */
|
|
||||||
int
|
|
||||||
router_get_networkstatus_v3_hash(const char *s, char *digest,
|
|
||||||
digest_algorithm_t alg)
|
|
||||||
{
|
|
||||||
return router_get_hash_impl(s, strlen(s), digest,
|
|
||||||
"network-status-version",
|
|
||||||
"\ndirectory-signature",
|
|
||||||
' ', alg);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set <b>digest</b> to the SHA-1 digest of the hash of the <b>s_len</b>-byte
|
/** Set <b>digest</b> to the SHA-1 digest of the hash of the <b>s_len</b>-byte
|
||||||
* extrainfo string at <b>s</b>. Return 0 on success, -1 on failure. */
|
* extrainfo string at <b>s</b>. Return 0 on success, -1 on failure. */
|
||||||
int
|
int
|
||||||
|
@ -16,8 +16,6 @@ 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_dir_hash(const char *s, char *digest);
|
||||||
int router_get_runningrouters_hash(const char *s, char *digest);
|
int router_get_runningrouters_hash(const char *s, char *digest);
|
||||||
int router_get_networkstatus_v2_hash(const char *s, char *digest);
|
int router_get_networkstatus_v2_hash(const char *s, char *digest);
|
||||||
int router_get_networkstatus_v3_hash(const char *s, char *digest,
|
|
||||||
digest_algorithm_t algorithm);
|
|
||||||
int router_get_networkstatus_v3_hashes(const char *s, digests_t *digests);
|
int router_get_networkstatus_v3_hashes(const char *s, digests_t *digests);
|
||||||
int router_get_extrainfo_hash(const char *s, size_t s_len, char *digest);
|
int router_get_extrainfo_hash(const char *s, size_t s_len, char *digest);
|
||||||
#define DIROBJ_MAX_SIG_LEN 256
|
#define DIROBJ_MAX_SIG_LEN 256
|
||||||
|
Loading…
Reference in New Issue
Block a user