summaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-09-10 10:37:13 -0400
committerNick Mathewson <nickm@torproject.org>2015-09-10 10:37:13 -0400
commit41891cbf93c32282ed6136d29375b5863efcf727 (patch)
tree2fa0359d3d9e7ce8d5adc66badbb0a86e295b884 /src/or/main.c
parent901732a1bc62b1d8455e13bc989d1f0196432943 (diff)
parent037e8763a7cb6358b4622ebef30bda6e11bb2ce5 (diff)
downloadtor-41891cbf93c32282ed6136d29375b5863efcf727.tar.gz
tor-41891cbf93c32282ed6136d29375b5863efcf727.zip
Merge remote-tracking branch 'public/ed25519_hup_v2'
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 5dca9bce1d..693d13cd13 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -2019,6 +2019,14 @@ do_hup(void)
* force a retry there. */
if (server_mode(options)) {
+ /* Maybe we've been given a new ed25519 key or certificate?
+ */
+ time_t now = approx_time();
+ if (load_ed_keys(options, now) < 0 ||
+ generate_ed_link_cert(options, now)) {
+ log_warn(LD_OR, "Problem reloading Ed25519 keys; still using old keys.");
+ }
+
/* Update cpuworker and dnsworker processes, so they get up-to-date
* configuration options. */
cpuworkers_rotate_keyinfo();