[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r35603 - gnunet/src/cadet
From: |
gnunet |
Subject: |
[GNUnet-SVN] r35603 - gnunet/src/cadet |
Date: |
Mon, 27 Apr 2015 21:14:49 +0200 |
Author: bartpolot
Date: 2015-04-27 21:14:49 +0200 (Mon, 27 Apr 2015)
New Revision: 35603
Modified:
gnunet/src/cadet/gnunet-service-cadet_tunnel.c
Log:
- debug
Modified: gnunet/src/cadet/gnunet-service-cadet_tunnel.c
===================================================================
--- gnunet/src/cadet/gnunet-service-cadet_tunnel.c 2015-04-27 19:14:47 UTC
(rev 35602)
+++ gnunet/src/cadet/gnunet-service-cadet_tunnel.c 2015-04-27 19:14:49 UTC
(rev 35603)
@@ -1856,7 +1856,7 @@
* @param tc TaskContext.
*/
static void
-rekey (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
+global_otr_rekey (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
{
struct GNUNET_TIME_Absolute time;
long n;
@@ -1875,7 +1875,7 @@
time = GNUNET_TIME_absolute_add (time, GNUNET_TIME_UNIT_MINUTES);
kx_msg.expiration_time = GNUNET_TIME_absolute_hton (time);
GNUNET_CRYPTO_ecdhe_key_get_public (my_ephemeral_key, &kx_msg.ephemeral_key);
- LOG (GNUNET_ERROR_TYPE_INFO, "GLOBAL RE-KEY, NEW EPHM: %s\n",
+ LOG (GNUNET_ERROR_TYPE_INFO, "GLOBAL OTR RE-KEY, NEW EPHM: %s\n",
GNUNET_h2s ((struct GNUNET_HashCode *) &kx_msg.ephemeral_key));
GNUNET_assert (GNUNET_OK ==
@@ -1886,7 +1886,8 @@
n = (long) GNUNET_CONTAINER_multipeermap_size (tunnels);
GNUNET_CONTAINER_multipeermap_iterate (tunnels, &rekey_iterator, (void *) n);
- rekey_task = GNUNET_SCHEDULER_add_delayed (rekey_period, &rekey, NULL);
+ rekey_task = GNUNET_SCHEDULER_add_delayed (rekey_period,
+ &global_otr_rekey, NULL);
}
@@ -2661,7 +2662,7 @@
kx_msg.purpose.purpose = htonl (GNUNET_SIGNATURE_PURPOSE_CADET_KX);
kx_msg.purpose.size = htonl (ephemeral_purpose_size ());
kx_msg.origin_identity = my_full_id;
- rekey_task = GNUNET_SCHEDULER_add_now (&rekey, NULL);
+ rekey_task = GNUNET_SCHEDULER_add_now (&global_otr_rekey, NULL);
tunnels = GNUNET_CONTAINER_multipeermap_create (128, GNUNET_YES);
}
@@ -3645,7 +3646,7 @@
GNUNET_CRYPTO_ecdhe_key_get_public (t->ax->kx_0, &msg.ephemeral_key);
GNUNET_CRYPTO_ecdhe_key_get_public (t->ax->DHRs, &msg.ratchet_key);
- t->ephm_h = send_kx (t, &msg);
+ t->ephm_h = send_kx (t, &msg.header);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r35603 - gnunet/src/cadet,
gnunet <=