summaryrefslogtreecommitdiff
path: root/toxcore/onion.c
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2015-04-20 20:40:32 -0400
committerirungentoo <irungentoo@gmail.com>2015-04-20 20:40:32 -0400
commite4ae993a80261d12cf7adb7f797a56579c39ea91 (patch)
treeec55c53e5a10784a99f1c9f87a2e400e1636c4f7 /toxcore/onion.c
parent4a987bf751058f1e82bbb33194512e72f9dda01b (diff)
Some small fixes.
Increased interval between onion key changes to 2 hours.
Diffstat (limited to 'toxcore/onion.c')
-rw-r--r--toxcore/onion.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/onion.c b/toxcore/onion.c
index c6093f0c..48e4c769 100644
--- a/toxcore/onion.c
+++ b/toxcore/onion.c
@@ -35,8 +35,8 @@
35#define SEND_2 ONION_SEND_2 35#define SEND_2 ONION_SEND_2
36#define SEND_1 ONION_SEND_1 36#define SEND_1 ONION_SEND_1
37 37
38/* Change symmetric keys every hour to make paths expire eventually. */ 38/* Change symmetric keys every 2 hours to make paths expire eventually. */
39#define KEY_REFRESH_INTERVAL (60 * 60) 39#define KEY_REFRESH_INTERVAL (2 * 60 * 60)
40static void change_symmetric_key(Onion *onion) 40static void change_symmetric_key(Onion *onion)
41{ 41{
42 if (is_timeout(onion->timestamp, KEY_REFRESH_INTERVAL)) { 42 if (is_timeout(onion->timestamp, KEY_REFRESH_INTERVAL)) {