diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-12-16 19:15:25 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-12-16 19:15:25 +0000 |
commit | d8160418d2651cef9de028d5dbbb8635e8c83ec9 (patch) | |
tree | cf272855214ac77132adb15a86c28cdff7ca011f /src/mesh/gnunet-service-mesh_tunnel.c | |
parent | 014c3c3501d023cbb6a897cd95ad17a321a82e50 (diff) | |
download | gnunet-d8160418d2651cef9de028d5dbbb8635e8c83ec9.tar.gz gnunet-d8160418d2651cef9de028d5dbbb8635e8c83ec9.zip |
- debug
Diffstat (limited to 'src/mesh/gnunet-service-mesh_tunnel.c')
-rw-r--r-- | src/mesh/gnunet-service-mesh_tunnel.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/mesh/gnunet-service-mesh_tunnel.c b/src/mesh/gnunet-service-mesh_tunnel.c index bd57d94c6..f1a3370d4 100644 --- a/src/mesh/gnunet-service-mesh_tunnel.c +++ b/src/mesh/gnunet-service-mesh_tunnel.c | |||
@@ -994,9 +994,11 @@ rekey_tunnel (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
994 | { | 994 | { |
995 | LOG (GNUNET_ERROR_TYPE_DEBUG, " new kx ctx\n"); | 995 | LOG (GNUNET_ERROR_TYPE_DEBUG, " new kx ctx\n"); |
996 | t->kx_ctx = GNUNET_new (struct MeshTunnelKXCtx); | 996 | t->kx_ctx = GNUNET_new (struct MeshTunnelKXCtx); |
997 | t->kx_ctx->challenge = GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_NONCE, | 997 | t->kx_ctx->challenge = |
998 | UINT32_MAX); | 998 | GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_NONCE, UINT32_MAX); |
999 | t->kx_ctx->d_key_old = t->d_key; | 999 | t->kx_ctx->d_key_old = t->d_key; |
1000 | LOG (GNUNET_ERROR_TYPE_DEBUG, " new challenge for %s: %u\n", | ||
1001 | GMT_2s (t), t->kx_ctx->challenge); | ||
1000 | } | 1002 | } |
1001 | send_ephemeral (t); | 1003 | send_ephemeral (t); |
1002 | switch (t->estate) | 1004 | switch (t->estate) |
@@ -1919,7 +1921,8 @@ GMT_destroy_empty (struct MeshTunnel3 *t) | |||
1919 | { | 1921 | { |
1920 | struct MeshTConnection *iter; | 1922 | struct MeshTConnection *iter; |
1921 | 1923 | ||
1922 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Tunnel empty: destroying scheduled\n"); | 1924 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Tunnel %s empty: destroying scheduled\n", |
1925 | GMT_2s (t)); | ||
1923 | for (iter = t->connection_head; NULL != iter; iter = iter->next) | 1926 | for (iter = t->connection_head; NULL != iter; iter = iter->next) |
1924 | { | 1927 | { |
1925 | GMC_send_destroy (iter->c); | 1928 | GMC_send_destroy (iter->c); |
@@ -2104,7 +2107,7 @@ GMT_get_cstate (struct MeshTunnel3 *t) | |||
2104 | { | 2107 | { |
2105 | if (NULL == t) | 2108 | if (NULL == t) |
2106 | { | 2109 | { |
2107 | GNUNET_break (0); | 2110 | GNUNET_assert (0); |
2108 | return (enum MeshTunnel3CState) -1; | 2111 | return (enum MeshTunnel3CState) -1; |
2109 | } | 2112 | } |
2110 | return t->cstate; | 2113 | return t->cstate; |