diff options
author | Bart Polot <bart@net.in.tum.de> | 2014-06-17 12:13:25 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2014-06-17 12:13:25 +0000 |
commit | d92e0d68b2b0fb0146451fad0153c01eb2423911 (patch) | |
tree | 13a7bcec8eae1c06a26fce432646aeebbe680f7b | |
parent | cb6bac3f4375a3cccac32db8bda1fb979f3b6f6f (diff) | |
download | gnunet-d92e0d68b2b0fb0146451fad0153c01eb2423911.tar.gz gnunet-d92e0d68b2b0fb0146451fad0153c01eb2423911.zip |
- kx debug
-rw-r--r-- | src/cadet/gnunet-service-cadet_tunnel.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cadet/gnunet-service-cadet_tunnel.c b/src/cadet/gnunet-service-cadet_tunnel.c index 31f4c2ef9..c9648fe95 100644 --- a/src/cadet/gnunet-service-cadet_tunnel.c +++ b/src/cadet/gnunet-service-cadet_tunnel.c | |||
@@ -815,6 +815,10 @@ create_keys (struct CadetTunnel *t) | |||
815 | derive_symmertic (&t->e_key, &my_full_id, GCP_get_id (t->peer), &km); | 815 | derive_symmertic (&t->e_key, &my_full_id, GCP_get_id (t->peer), &km); |
816 | derive_symmertic (&t->d_key, GCP_get_id (t->peer), &my_full_id, &km); | 816 | derive_symmertic (&t->d_key, GCP_get_id (t->peer), &my_full_id, &km); |
817 | #if DUMP_KEYS_TO_STDIN | 817 | #if DUMP_KEYS_TO_STDIN |
818 | LOG (GNUNET_ERROR_TYPE_INFO, "ME: %s\n", | ||
819 | GNUNET_h2s ((struct GNUNET_HashCode *) &kx_msg.ephemeral_key)); | ||
820 | LOG (GNUNET_ERROR_TYPE_INFO, "PE: %s\n", | ||
821 | GNUNET_h2s ((struct GNUNET_HashCode *) &t->peers_ephemeral_key)); | ||
818 | LOG (GNUNET_ERROR_TYPE_INFO, "KM: %s\n", GNUNET_h2s (&km)); | 822 | LOG (GNUNET_ERROR_TYPE_INFO, "KM: %s\n", GNUNET_h2s (&km)); |
819 | LOG (GNUNET_ERROR_TYPE_INFO, "EK: %s\n", | 823 | LOG (GNUNET_ERROR_TYPE_INFO, "EK: %s\n", |
820 | GNUNET_h2s ((struct GNUNET_HashCode *) &t->e_key)); | 824 | GNUNET_h2s ((struct GNUNET_HashCode *) &t->e_key)); |
@@ -1801,7 +1805,7 @@ handle_pong (struct CadetTunnel *t, | |||
1801 | 1805 | ||
1802 | delay = GNUNET_TIME_relative_divide (rekey_period, 4); | 1806 | delay = GNUNET_TIME_relative_divide (rekey_period, 4); |
1803 | delay = GNUNET_TIME_relative_min (delay, GNUNET_TIME_UNIT_MINUTES); | 1807 | delay = GNUNET_TIME_relative_min (delay, GNUNET_TIME_UNIT_MINUTES); |
1804 | t->kx_ctx->finish_task = GNUNET_SCHEDULER_add_delayed(delay, finish_kx, t); | 1808 | t->kx_ctx->finish_task = GNUNET_SCHEDULER_add_delayed (delay, finish_kx, t); |
1805 | } | 1809 | } |
1806 | GCT_change_estate (t, CADET_TUNNEL3_KEY_OK); | 1810 | GCT_change_estate (t, CADET_TUNNEL3_KEY_OK); |
1807 | } | 1811 | } |