From: Guus Sliepen Date: Mon, 21 Apr 2014 21:08:57 +0000 (+0200) Subject: Remove key expiry timer. X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=5071c1ce316dbe7f42e43e3fb40cb38c40f63719;p=meshlink Remove key expiry timer. This is something that should be done at the SPTPS layer. --- 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?