diff options
author | David Goulet <dgoulet@torproject.org> | 2017-05-02 15:50:33 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2017-06-27 10:24:15 -0400 |
commit | c17a04376de9e0517e611ad164172e7a5de26953 (patch) | |
tree | d32f20ba19dfdbf5d9a120a045efc9612d15b232 /src/or/nodelist.h | |
parent | f6df433b9123c50b8eda6d8784d4f96be6d02f51 (diff) | |
download | tor-c17a04376de9e0517e611ad164172e7a5de26953.tar.gz tor-c17a04376de9e0517e611ad164172e7a5de26953.zip |
nodelist: Add functions to check for HS v3 support
This introduces node_supports_v3_hsdir() and node_supports_ed25519_hs_intro()
that checks the routerstatus_t of a node and if not present, checks the
routerinfo_t.
This is groundwork for proposal 224 service implementation in #20657.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/nodelist.h')
-rw-r--r-- | src/or/nodelist.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/nodelist.h b/src/or/nodelist.h index 6c063de8a3..f59e767d1e 100644 --- a/src/or/nodelist.h +++ b/src/or/nodelist.h @@ -58,6 +58,8 @@ const ed25519_public_key_t *node_get_ed25519_id(const node_t *node); int node_ed25519_id_matches(const node_t *node, const ed25519_public_key_t *id); int node_supports_ed25519_link_authentication(const node_t *node); +int node_supports_v3_hsdir(const node_t *node); +int node_supports_ed25519_hs_intro(const node_t *node); const uint8_t *node_get_rsa_id_digest(const node_t *node); int node_has_ipv6_addr(const node_t *node); |