From bce54e487d1b542ce6a28417b7ecb14e6ef7914c Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Wed, 15 Oct 2014 00:55:52 +0000 Subject: [PATCH] - fix logging of key material --- src/cadet/gnunet-service-cadet_tunnel.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/cadet/gnunet-service-cadet_tunnel.c b/src/cadet/gnunet-service-cadet_tunnel.c index c6e65926b..2917e4ff7 100644 --- a/src/cadet/gnunet-service-cadet_tunnel.c +++ b/src/cadet/gnunet-service-cadet_tunnel.c @@ -3273,10 +3273,17 @@ GCT_debug (const struct CadetTunnel *t, enum GNUNET_ErrorType level) GNUNET_h2s ((struct GNUNET_HashCode *) &kx_msg.ephemeral_key)); LOG2 (level, "TTT peers EPHM:\t %s\n", GNUNET_h2s ((struct GNUNET_HashCode *) &t->peers_ephemeral_key)); - LOG (level, "TTT ENC key:\t %s\n", - GNUNET_h2s ((struct GNUNET_HashCode *) &t->e_key)); - LOG (level, "TTT DEC key:\t %s\n", - GNUNET_h2s ((struct GNUNET_HashCode *) &t->d_key)); + LOG2 (level, "TTT ENC key:\t %s\n", + GNUNET_h2s ((struct GNUNET_HashCode *) &t->e_key)); + LOG2 (level, "TTT DEC key:\t %s\n", + GNUNET_h2s ((struct GNUNET_HashCode *) &t->d_key)); + if (t->kx_ctx) + { + LOG2 (level, "TTT OLD ENC key:\t %s\n", + GNUNET_h2s ((struct GNUNET_HashCode *) &t->kx_ctx->e_key_old)); + LOG2 (level, "TTT OLD DEC key:\t %s\n", + GNUNET_h2s ((struct GNUNET_HashCode *) &t->kx_ctx->d_key_old)); + } #endif LOG2 (level, "TTT tq_head %p, tq_tail %p\n", t->tq_head, t->tq_tail); LOG2 (level, "TTT destroy %u\n", t->destroy_task); -- 2.25.1