diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-08-09 13:45:03 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-08-09 13:45:03 -0400 |
commit | 3cddd6570c6c1e30b002893262680c3d3235d6c3 (patch) | |
tree | e17502b814b6b6fd4512b4c8424007d4799b8003 /src/or/nodelist.h | |
parent | d655388a4a7c6a4415c8a48d410809591385c344 (diff) | |
download | tor-3cddd6570c6c1e30b002893262680c3d3235d6c3.tar.gz tor-3cddd6570c6c1e30b002893262680c3d3235d6c3.zip |
Add a hashtable mapping to nodes from ed25519 ids
Diffstat (limited to 'src/or/nodelist.h')
-rw-r--r-- | src/or/nodelist.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/nodelist.h b/src/or/nodelist.h index 405b79d820..20df37b511 100644 --- a/src/or/nodelist.h +++ b/src/or/nodelist.h @@ -18,6 +18,9 @@ node_t *node_get_mutable_by_id(const char *identity_digest); MOCK_DECL(const node_t *, node_get_by_id, (const char *identity_digest)); +node_t *node_get_mutable_by_ed25519_id(const ed25519_public_key_t *ed_id); +MOCK_DECL(const node_t *, node_get_by_ed25519_id, + (const ed25519_public_key_t *ed_id)); const node_t *node_get_by_hex_id(const char *identity_digest); node_t *nodelist_set_routerinfo(routerinfo_t *ri, routerinfo_t **ri_old_out); node_t *nodelist_add_microdesc(microdesc_t *md); |