mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
expose routerstatus_has_changed to unit tests.
This commit is contained in:
parent
594e5ce635
commit
60a0d7d1e8
@ -1611,8 +1611,7 @@ networkstatus_consensus_has_ipv6(const or_options_t* options)
|
|||||||
* and the printing function routerstatus_format_entry in
|
* and the printing function routerstatus_format_entry in
|
||||||
* NS_CONTROL_PORT mode.
|
* NS_CONTROL_PORT mode.
|
||||||
**/
|
**/
|
||||||
|
STATIC int
|
||||||
static int
|
|
||||||
routerstatus_has_changed(const routerstatus_t *a, const routerstatus_t *b)
|
routerstatus_has_changed(const routerstatus_t *a, const routerstatus_t *b)
|
||||||
{
|
{
|
||||||
tor_assert(tor_memeq(a->identity_digest, b->identity_digest, DIGEST_LEN));
|
tor_assert(tor_memeq(a->identity_digest, b->identity_digest, DIGEST_LEN));
|
||||||
|
@ -164,6 +164,8 @@ STATIC void warn_early_consensus(const networkstatus_t *c, const char *flavor,
|
|||||||
extern networkstatus_t *current_ns_consensus;
|
extern networkstatus_t *current_ns_consensus;
|
||||||
extern networkstatus_t *current_md_consensus;
|
extern networkstatus_t *current_md_consensus;
|
||||||
#endif /* defined(TOR_UNIT_TESTS) */
|
#endif /* defined(TOR_UNIT_TESTS) */
|
||||||
|
STATIC int routerstatus_has_changed(const routerstatus_t *a,
|
||||||
|
const routerstatus_t *b);
|
||||||
#endif /* defined(NETWORKSTATUS_PRIVATE) */
|
#endif /* defined(NETWORKSTATUS_PRIVATE) */
|
||||||
|
|
||||||
#endif /* !defined(TOR_NETWORKSTATUS_H) */
|
#endif /* !defined(TOR_NETWORKSTATUS_H) */
|
||||||
|
Loading…
Reference in New Issue
Block a user