diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-08-29 15:02:11 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-08-29 15:02:11 -0400 |
commit | bbaa7d09a045130560a2f5da579671c5e02c9cd7 (patch) | |
tree | 232540453f40eb00b2dc0492b236967f383627e8 /src/or/router.c | |
parent | f46ce6e3d8bea3cf00388c87c29cdcafd4bab350 (diff) | |
parent | 19816f2f782568722964d35ee132af441a809db3 (diff) | |
download | tor-bbaa7d09a045130560a2f5da579671c5e02c9cd7.tar.gz tor-bbaa7d09a045130560a2f5da579671c5e02c9cd7.zip |
Merge remote-tracking branch 'teor/reject-tap-v6'
Diffstat (limited to 'src/or/router.c')
-rw-r--r-- | src/or/router.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/router.c b/src/or/router.c index e9961d4594..b664a88760 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -2836,6 +2836,10 @@ router_dump_router_to_string(routerinfo_t *router, (const char *)router->onion_curve25519_pkey->public_key, CURVE25519_PUBKEY_LEN, BASE64_ENCODE_MULTILINE); smartlist_add_asprintf(chunks, "ntor-onion-key %s", kbuf); + } else { + /* Authorities will start rejecting relays without ntor keys in 0.2.9 */ + log_err(LD_BUG, "A relay must have an ntor onion key"); + goto err; } /* Write the exit policy to the end of 's'. */ |