From 2e567d1289cff312f3f42b57086a4a0ca5e80ba2 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Mon, 15 Dec 2014 07:17:35 +0000 Subject: [PATCH] - log EPHM on receipt --- src/cadet/gnunet-service-cadet_tunnel.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/cadet/gnunet-service-cadet_tunnel.c b/src/cadet/gnunet-service-cadet_tunnel.c index 69d9fcf44..1be70594e 100644 --- a/src/cadet/gnunet-service-cadet_tunnel.c +++ b/src/cadet/gnunet-service-cadet_tunnel.c @@ -1878,6 +1878,12 @@ handle_ephemeral (struct CadetTunnel *t, if (0 != memcmp (&t->peers_ephemeral_key, &msg->ephemeral_key, sizeof (msg->ephemeral_key))) { + #if DUMP_KEYS_TO_STDERR + LOG (GNUNET_ERROR_TYPE_INFO, "OLD: %s\n", + GNUNET_h2s ((struct GNUNET_HashCode *) &t->peers_ephemeral_key)); + LOG (GNUNET_ERROR_TYPE_INFO, "NEW: %s\n", + GNUNET_h2s ((struct GNUNET_HashCode *) &msg->ephemeral_key)); + #endif t->peers_ephemeral_key = msg->ephemeral_key; create_kx_ctx (t); create_keys (t); -- 2.25.1