mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-20 10:12:15 +01:00
Remove the unused router_hex_digest_matches
When I removed some unused functions in 5bfa373eee
, this became
unused as well.
This commit is contained in:
parent
cbf9e74236
commit
9077118ee2
@ -2591,19 +2591,6 @@ router_is_named(const routerinfo_t *router)
|
||||
tor_memeq(digest, router->cache_info.identity_digest, DIGEST_LEN));
|
||||
}
|
||||
|
||||
/** Return true iff the digest of <b>router</b>'s identity key,
|
||||
* encoded in hexadecimal, matches <b>hexdigest</b> (which is
|
||||
* optionally prefixed with a single dollar sign). Return false if
|
||||
* <b>hexdigest</b> is malformed, or it doesn't match. */
|
||||
static INLINE int
|
||||
router_hex_digest_matches(const routerinfo_t *router, const char *hexdigest)
|
||||
{
|
||||
return hex_digest_nickname_matches(hexdigest,
|
||||
router->cache_info.identity_digest,
|
||||
router->nickname,
|
||||
router_is_named(router));
|
||||
}
|
||||
|
||||
/** Return true iff <b>digest</b> is the digest of the identity key of a
|
||||
* trusted directory matching at least one bit of <b>type</b>. If <b>type</b>
|
||||
* is zero, any authority is okay. */
|
||||
|
Loading…
Reference in New Issue
Block a user