diff options
author | Bart Polot <bart@net.in.tum.de> | 2014-03-10 09:52:44 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2014-03-10 09:52:44 +0000 |
commit | 373661bd9a40828681f6f9d8f3f1484c2db5b567 (patch) | |
tree | a9a1f05d19a30447dd4615f1f2ffabc68a4c6b5a /src/mesh/gnunet-service-mesh_tunnel.c | |
parent | 26a1ab5f0dd64c4a1395acf3627febe504f88ebc (diff) | |
download | gnunet-373661bd9a40828681f6f9d8f3f1484c2db5b567.tar.gz gnunet-373661bd9a40828681f6f9d8f3f1484c2db5b567.zip |
- generate smaller hashes for Conn IDs
Diffstat (limited to 'src/mesh/gnunet-service-mesh_tunnel.c')
-rw-r--r-- | src/mesh/gnunet-service-mesh_tunnel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesh/gnunet-service-mesh_tunnel.c b/src/mesh/gnunet-service-mesh_tunnel.c index be44e495b..4d6bccb70 100644 --- a/src/mesh/gnunet-service-mesh_tunnel.c +++ b/src/mesh/gnunet-service-mesh_tunnel.c | |||
@@ -2179,7 +2179,7 @@ struct MeshConnection * | |||
2179 | GMT_use_path (struct MeshTunnel3 *t, struct MeshPeerPath *p) | 2179 | GMT_use_path (struct MeshTunnel3 *t, struct MeshPeerPath *p) |
2180 | { | 2180 | { |
2181 | struct MeshConnection *c; | 2181 | struct MeshConnection *c; |
2182 | struct GNUNET_HashCode cid; | 2182 | struct GNUNET_MeshHash cid; |
2183 | unsigned int own_pos; | 2183 | unsigned int own_pos; |
2184 | 2184 | ||
2185 | if (NULL == t || NULL == p) | 2185 | if (NULL == t || NULL == p) |
@@ -2205,7 +2205,7 @@ GMT_use_path (struct MeshTunnel3 *t, struct MeshPeerPath *p) | |||
2205 | return NULL; | 2205 | return NULL; |
2206 | } | 2206 | } |
2207 | 2207 | ||
2208 | GNUNET_CRYPTO_hash_create_random (GNUNET_CRYPTO_QUALITY_NONCE, &cid); | 2208 | GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_NONCE, &cid, sizeof (cid)); |
2209 | c = GMC_new (&cid, t, p, own_pos); | 2209 | c = GMC_new (&cid, t, p, own_pos); |
2210 | if (NULL == c) | 2210 | if (NULL == c) |
2211 | { | 2211 | { |