log rekeying operation, do not log distracting garbage for #4019
authorChristian Grothoff <christian@grothoff.org>
Wed, 28 Oct 2015 10:27:16 +0000 (10:27 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 28 Oct 2015 10:27:16 +0000 (10:27 +0000)
src/core/gnunet-service-core_kx.c

index 9673782a1a39a8c16d3876068e29da84275d8050..0cf287d24c5040dcc519151f2c4541810dca961b 100644 (file)
@@ -1060,22 +1060,9 @@ GSC_KX_handle_ping (struct GSC_KeyExchangeInfo *kx,
               &GSC_my_identity,
               sizeof (struct GNUNET_PeerIdentity)))
   {
-    char sender[5];
-    char peer[5];
-
-    GNUNET_snprintf (sender,
-                     sizeof (sender),
-                     "%4s",
-                     GNUNET_i2s (&kx->peer));
-    GNUNET_snprintf (peer,
-                     sizeof (peer),
-                     "%4s",
-                     GNUNET_i2s (&t.target));
     GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
-                _("Received PING from `%s' for different identity: I am `%s', PONG identity: `%s'\n"),
-                sender,
-                GNUNET_i2s (&GSC_my_identity),
-                peer);
+                "Decryption of PING from peer `%s'\n",
+                GNUNET_i2s (sender));
     GNUNET_break_op (0);
     return;
   }
@@ -1719,6 +1706,8 @@ do_rekey (void *cls,
                                             NULL);
   if (NULL != my_ephemeral_key)
     GNUNET_free (my_ephemeral_key);
+  GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+              "Rekeying\n");
   my_ephemeral_key = GNUNET_CRYPTO_ecdhe_key_create ();
   GNUNET_assert (NULL != my_ephemeral_key);
   sign_ephemeral_key ();