diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-10-28 10:27:16 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-10-28 10:27:16 +0000 |
commit | 78b3c3c0c977d4686cabfc8291d082e517f66998 (patch) | |
tree | 421d83527a187eeac3e5c94b28e22591b8c98ab3 /src/core/gnunet-service-core_kx.c | |
parent | 5131f579f895086be91b6d00ab4f38d5d237209e (diff) | |
download | gnunet-78b3c3c0c977d4686cabfc8291d082e517f66998.tar.gz gnunet-78b3c3c0c977d4686cabfc8291d082e517f66998.zip |
log rekeying operation, do not log distracting garbage for #4019
Diffstat (limited to 'src/core/gnunet-service-core_kx.c')
-rw-r--r-- | src/core/gnunet-service-core_kx.c | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/src/core/gnunet-service-core_kx.c b/src/core/gnunet-service-core_kx.c index 9673782a1..0cf287d24 100644 --- a/src/core/gnunet-service-core_kx.c +++ b/src/core/gnunet-service-core_kx.c | |||
@@ -1060,22 +1060,9 @@ GSC_KX_handle_ping (struct GSC_KeyExchangeInfo *kx, | |||
1060 | &GSC_my_identity, | 1060 | &GSC_my_identity, |
1061 | sizeof (struct GNUNET_PeerIdentity))) | 1061 | sizeof (struct GNUNET_PeerIdentity))) |
1062 | { | 1062 | { |
1063 | char sender[5]; | ||
1064 | char peer[5]; | ||
1065 | |||
1066 | GNUNET_snprintf (sender, | ||
1067 | sizeof (sender), | ||
1068 | "%4s", | ||
1069 | GNUNET_i2s (&kx->peer)); | ||
1070 | GNUNET_snprintf (peer, | ||
1071 | sizeof (peer), | ||
1072 | "%4s", | ||
1073 | GNUNET_i2s (&t.target)); | ||
1074 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 1063 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
1075 | _("Received PING from `%s' for different identity: I am `%s', PONG identity: `%s'\n"), | 1064 | "Decryption of PING from peer `%s'\n", |
1076 | sender, | 1065 | GNUNET_i2s (sender)); |
1077 | GNUNET_i2s (&GSC_my_identity), | ||
1078 | peer); | ||
1079 | GNUNET_break_op (0); | 1066 | GNUNET_break_op (0); |
1080 | return; | 1067 | return; |
1081 | } | 1068 | } |
@@ -1719,6 +1706,8 @@ do_rekey (void *cls, | |||
1719 | NULL); | 1706 | NULL); |
1720 | if (NULL != my_ephemeral_key) | 1707 | if (NULL != my_ephemeral_key) |
1721 | GNUNET_free (my_ephemeral_key); | 1708 | GNUNET_free (my_ephemeral_key); |
1709 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | ||
1710 | "Rekeying\n"); | ||
1722 | my_ephemeral_key = GNUNET_CRYPTO_ecdhe_key_create (); | 1711 | my_ephemeral_key = GNUNET_CRYPTO_ecdhe_key_create (); |
1723 | GNUNET_assert (NULL != my_ephemeral_key); | 1712 | GNUNET_assert (NULL != my_ephemeral_key); |
1724 | sign_ephemeral_key (); | 1713 | sign_ephemeral_key (); |