diff options
author | George Kadianakis <desnacked@riseup.net> | 2017-08-07 16:17:33 +0300 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-08-08 20:29:35 -0400 |
commit | 8bac50d7559adba16e282d5c83b891a387a8a3d5 (patch) | |
tree | f695b09249e235b15f2977e29e1b83bb3bdb2e0a /src/or/hs_descriptor.c | |
parent | 273638288d4e6516011c4d538e5c1447f4753958 (diff) | |
download | tor-8bac50d7559adba16e282d5c83b891a387a8a3d5.tar.gz tor-8bac50d7559adba16e282d5c83b891a387a8a3d5.zip |
prop224: Improve comments and tests for ed25519 keys in IPs/RPs.
Also make sure we are not gonna advertise the ed25519 key of an intro
point that doesn't support it.
Diffstat (limited to 'src/or/hs_descriptor.c')
-rw-r--r-- | src/or/hs_descriptor.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/hs_descriptor.c b/src/or/hs_descriptor.c index 3e8343691e..9a1e377155 100644 --- a/src/or/hs_descriptor.c +++ b/src/or/hs_descriptor.c @@ -2510,6 +2510,7 @@ hs_desc_link_specifier_new(const extend_info_t *info, uint8_t type) memcpy(ls->u.legacy_id, info->identity_digest, sizeof(ls->u.legacy_id)); break; case LS_ED25519_ID: + /* ed25519 keys are optional for intro points */ if (ed25519_public_key_is_zero(&info->ed_identity)) { goto err; } |