diff options
author | Bart Polot <bart@net.in.tum.de> | 2014-10-15 00:55:52 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2014-10-15 00:55:52 +0000 |
commit | bce54e487d1b542ce6a28417b7ecb14e6ef7914c (patch) | |
tree | ae9e2bc6fdc21af5c429bfdd48800b90629d7720 /src/cadet | |
parent | 98e80df6a13b647258fedbb5f20658a582e255bf (diff) | |
download | gnunet-bce54e487d1b542ce6a28417b7ecb14e6ef7914c.tar.gz gnunet-bce54e487d1b542ce6a28417b7ecb14e6ef7914c.zip |
- fix logging of key material
Diffstat (limited to 'src/cadet')
-rw-r--r-- | src/cadet/gnunet-service-cadet_tunnel.c | 15 |
1 files 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) | |||
3273 | GNUNET_h2s ((struct GNUNET_HashCode *) &kx_msg.ephemeral_key)); | 3273 | GNUNET_h2s ((struct GNUNET_HashCode *) &kx_msg.ephemeral_key)); |
3274 | LOG2 (level, "TTT peers EPHM:\t %s\n", | 3274 | LOG2 (level, "TTT peers EPHM:\t %s\n", |
3275 | GNUNET_h2s ((struct GNUNET_HashCode *) &t->peers_ephemeral_key)); | 3275 | GNUNET_h2s ((struct GNUNET_HashCode *) &t->peers_ephemeral_key)); |
3276 | LOG (level, "TTT ENC key:\t %s\n", | 3276 | LOG2 (level, "TTT ENC key:\t %s\n", |
3277 | GNUNET_h2s ((struct GNUNET_HashCode *) &t->e_key)); | 3277 | GNUNET_h2s ((struct GNUNET_HashCode *) &t->e_key)); |
3278 | LOG (level, "TTT DEC key:\t %s\n", | 3278 | LOG2 (level, "TTT DEC key:\t %s\n", |
3279 | GNUNET_h2s ((struct GNUNET_HashCode *) &t->d_key)); | 3279 | GNUNET_h2s ((struct GNUNET_HashCode *) &t->d_key)); |
3280 | if (t->kx_ctx) | ||
3281 | { | ||
3282 | LOG2 (level, "TTT OLD ENC key:\t %s\n", | ||
3283 | GNUNET_h2s ((struct GNUNET_HashCode *) &t->kx_ctx->e_key_old)); | ||
3284 | LOG2 (level, "TTT OLD DEC key:\t %s\n", | ||
3285 | GNUNET_h2s ((struct GNUNET_HashCode *) &t->kx_ctx->d_key_old)); | ||
3286 | } | ||
3280 | #endif | 3287 | #endif |
3281 | LOG2 (level, "TTT tq_head %p, tq_tail %p\n", t->tq_head, t->tq_tail); | 3288 | LOG2 (level, "TTT tq_head %p, tq_tail %p\n", t->tq_head, t->tq_tail); |
3282 | LOG2 (level, "TTT destroy %u\n", t->destroy_task); | 3289 | LOG2 (level, "TTT destroy %u\n", t->destroy_task); |