aboutsummaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>2016-07-06 17:15:48 +1000
committerteor (Tim Wilson-Brown) <teor2345@gmail.com>2016-07-15 09:55:49 +1000
commit24e8bb2d83666fddc5ba6c8f90665530807fac51 (patch)
treecc3d0b1d177bb0a8f684a5043222114279cc0cab /src/or/router.c
parent33da2abd0571a4c4e21d5841bab1be336bca3a5a (diff)
downloadtor-24e8bb2d83666fddc5ba6c8f90665530807fac51.tar.gz
tor-24e8bb2d83666fddc5ba6c8f90665530807fac51.zip
Relays make sure their own descriptor has an ntor key
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/router.c b/src/or/router.c
index a671591ad7..8d56f52b61 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -2753,6 +2753,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'. */