[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r35605 - gnunet/src/cadet
From: |
gnunet |
Subject: |
[GNUnet-SVN] r35605 - gnunet/src/cadet |
Date: |
Mon, 27 Apr 2015 21:14:51 +0200 |
Author: bartpolot
Date: 2015-04-27 21:14:51 +0200 (Mon, 27 Apr 2015)
New Revision: 35605
Modified:
gnunet/src/cadet/gnunet-service-cadet_tunnel.c
Log:
- debug info
Modified: gnunet/src/cadet/gnunet-service-cadet_tunnel.c
===================================================================
--- gnunet/src/cadet/gnunet-service-cadet_tunnel.c 2015-04-27 19:14:50 UTC
(rev 35604)
+++ gnunet/src/cadet/gnunet-service-cadet_tunnel.c 2015-04-27 19:14:51 UTC
(rev 35605)
@@ -2380,6 +2380,8 @@
const struct GNUNET_PeerIdentity *pid;
int is_alice;
+ LOG (GNUNET_ERROR_TYPE_INFO, "<=== AX_KX on %s\n", GCT_2s (t));
+
if (NULL == t->ax)
{
/* Something is wrong if ax is NULL. Whose fault it is? */
@@ -2399,6 +2401,8 @@
return;
}
+ LOG (GNUNET_ERROR_TYPE_INFO, " is Alice? %s\n", is_alice ? "YES" : "NO");
+
ax = t->ax;
ax->DHRr = msg->ratchet_key;
@@ -2433,6 +2437,15 @@
pub = &msg->ephemeral_key; /* B0 or A0 */
GNUNET_CRYPTO_ecc_ecdh (priv, pub, &key_material[2]);
+ #if DUMP_KEYS_TO_STDERR
+ {
+ unsigned int i;
+ for (i = 0; i < 3; i++)
+ LOG (GNUNET_ERROR_TYPE_INFO, "km[%u]: %s\n",
+ i, GNUNET_h2s (&key_material[i]));
+ }
+ #endif
+
/* KDF */
GNUNET_CRYPTO_kdf (keys, sizeof (keys),
salt, sizeof (salt),
@@ -2741,6 +2754,10 @@
LOG (GNUNET_ERROR_TYPE_DEBUG, " cstate triggered kx\n");
GCT_send_ax_kx (t);
}
+ else
+ {
+ LOG (GNUNET_ERROR_TYPE_DEBUG, "estate %s\n", estate2s (t->estate));
+ }
}
t->cstate = cstate;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r35605 - gnunet/src/cadet,
gnunet <=