diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-11-10 12:24:07 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-12-08 16:47:58 -0500 |
commit | 7daf15217240acefaf2ef802b6d89e04f4e51cae (patch) | |
tree | 8be8786446066323340cf4ae4d7d194f164c14aa /src/or/nodelist.h | |
parent | 2cdd24ddd69a3cde2deae3eb69c24ae179d83834 (diff) | |
download | tor-7daf15217240acefaf2ef802b6d89e04f4e51cae.tar.gz tor-7daf15217240acefaf2ef802b6d89e04f4e51cae.zip |
Enforce Ed25519 identities (client-side)
This patch makes two absolutely critical changes:
- If an ed25519 identity is not as expected when creating a channel,
we call that channel unsuccessful and close it.
- When a client creating a channel or an extend cell for a circuit, we
only include the ed25519 identity if we believe that the node on
the other side supports ed25519 link authentication (from
#15055). Otherwise we will insist on nodes without the right
link protocol authenticating themselves.
- When deciding to extend to another relay, we only upgrade the
extend to extend by ed25519 ID when we know the ed25519 ID _and_
we know that the other side can authenticate.
This patch also tells directory servers, when probing nodes, to
try to check their ed25519 identities too (if they can authenticate
by ed25519 identity).
Also, handle the case where we connect by RSA Id, and learn the
ED25519 ID for the node in doing so.
Diffstat (limited to 'src/or/nodelist.h')
-rw-r--r-- | src/or/nodelist.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/nodelist.h b/src/or/nodelist.h index 2cdcdcee42..57c3b43228 100644 --- a/src/or/nodelist.h +++ b/src/or/nodelist.h @@ -56,6 +56,7 @@ long node_get_declared_uptime(const node_t *node); time_t node_get_published_on(const node_t *node); const smartlist_t *node_get_declared_family(const node_t *node); const ed25519_public_key_t *node_get_ed25519_id(const node_t *node); +int node_supports_ed25519_link_authentication(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); |