- log EPHM on receipt
authorBart Polot <bart@net.in.tum.de>
Mon, 15 Dec 2014 07:17:35 +0000 (07:17 +0000)
committerBart Polot <bart@net.in.tum.de>
Mon, 15 Dec 2014 07:17:35 +0000 (07:17 +0000)
src/cadet/gnunet-service-cadet_tunnel.c

index 69d9fcf44911993caf4afec3a43f7577870ccbbb..1be70594e9dc50f8dcf0f2637462bb9e8d9e8f23 100644 (file)
@@ -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);