diff options
author | Neel Chauhan <neel@neelc.org> | 2019-12-14 13:16:59 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-01-09 15:27:26 -0500 |
commit | d0068be0ddad3113052b213f5eab4d17211c38b3 (patch) | |
tree | fb8abdc69d5bf8084c62de4a60f12d9f6e0fb58a /src/feature/relay/router.c | |
parent | a7b6c01468171096f9e4b6262771c85511e0e4e7 (diff) | |
download | tor-d0068be0ddad3113052b213f5eab4d17211c38b3.tar.gz tor-d0068be0ddad3113052b213f5eab4d17211c38b3.zip |
Allow ed25519 keys to be banned in approved-routers
Diffstat (limited to 'src/feature/relay/router.c')
-rw-r--r-- | src/feature/relay/router.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/feature/relay/router.c b/src/feature/relay/router.c index 410ed8c2f3..1915c020ea 100644 --- a/src/feature/relay/router.c +++ b/src/feature/relay/router.c @@ -1074,8 +1074,10 @@ init_keys(void) if (authdir_mode_v3(options)) { const char *m = NULL; routerinfo_t *ri; - /* We need to add our own fingerprint so it gets recognized. */ - if (dirserv_add_own_fingerprint(get_server_identity_key())) { + /* We need to add our own fingerprint and ed25519 key so it gets + * recognized. */ + if (dirserv_add_own_fingerprint(get_server_identity_key(), + get_master_identity_key())) { log_err(LD_GENERAL,"Error adding own fingerprint to set of relays"); return -1; } |