From 5071c1ce316dbe7f42e43e3fb40cb38c40f63719 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Mon, 21 Apr 2014 23:08:57 +0200 Subject: [PATCH] Remove key expiry timer. This is something that should be done at the SPTPS layer. --- src/net_setup.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/net_setup.c b/src/net_setup.c index c48c0d5b..484346fa 100644 --- a/src/net_setup.c +++ b/src/net_setup.c @@ -128,18 +128,6 @@ static bool read_invitation_key(void) { return invitation_key; } -static timeout_t keyexpire_timeout; - -static void keyexpire_handler(void *data) { - regenerate_key(); - timeout_set(data, &(struct timeval){keylifetime, rand() % 100000}); -} - -void regenerate_key(void) { - logger(DEBUG_STATUS, LOG_INFO, "Expiring symmetric keys"); - send_key_changed(); -} - void load_all_nodes(void) { DIR *dir; struct dirent *ent; @@ -328,9 +316,6 @@ bool setup_myself(void) { if(!setup_myself_reloadable()) return false; - // TODO: check whether this is used at all - timeout_add(&keyexpire_timeout, keyexpire_handler, &keyexpire_timeout, &(struct timeval){keylifetime, rand() % 100000}); - /* Compression */ // TODO: drop compression in the packet layer? -- 2.39.5