diff options
Diffstat (limited to 'src/cadet/gnunet-service-cadet_tunnel.c')
-rw-r--r-- | src/cadet/gnunet-service-cadet_tunnel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cadet/gnunet-service-cadet_tunnel.c b/src/cadet/gnunet-service-cadet_tunnel.c index b9f0e1fa2..fe763e655 100644 --- a/src/cadet/gnunet-service-cadet_tunnel.c +++ b/src/cadet/gnunet-service-cadet_tunnel.c | |||
@@ -923,7 +923,7 @@ t_hmac (const void *plaintext, size_t size, | |||
923 | NULL); | 923 | NULL); |
924 | /* Two step: CADET_Hash is only 256 bits, HashCode is 512. */ | 924 | /* Two step: CADET_Hash is only 256 bits, HashCode is 512. */ |
925 | GNUNET_CRYPTO_hmac (&auth_key, plaintext, size, &hash); | 925 | GNUNET_CRYPTO_hmac (&auth_key, plaintext, size, &hash); |
926 | memcpy (hmac, &hash, sizeof (*hmac)); | 926 | GNUNET_memcpy (hmac, &hash, sizeof (*hmac)); |
927 | } | 927 | } |
928 | 928 | ||
929 | 929 | ||
@@ -1885,7 +1885,7 @@ queue_data (struct CadetTunnel *t, const struct GNUNET_MessageHeader *msg) | |||
1885 | tqd = GNUNET_malloc (sizeof (struct CadetTunnelDelayed) + size); | 1885 | tqd = GNUNET_malloc (sizeof (struct CadetTunnelDelayed) + size); |
1886 | 1886 | ||
1887 | tqd->t = t; | 1887 | tqd->t = t; |
1888 | memcpy (&tqd[1], msg, size); | 1888 | GNUNET_memcpy (&tqd[1], msg, size); |
1889 | GNUNET_CONTAINER_DLL_insert_tail (t->tq_head, t->tq_tail, tqd); | 1889 | GNUNET_CONTAINER_DLL_insert_tail (t->tq_head, t->tq_tail, tqd); |
1890 | return tqd; | 1890 | return tqd; |
1891 | } | 1891 | } |
@@ -2246,7 +2246,7 @@ send_kx (struct CadetTunnel *t, | |||
2246 | LOG (GNUNET_ERROR_TYPE_DEBUG, "unkown type %s\n", GC_m2s (type)); | 2246 | LOG (GNUNET_ERROR_TYPE_DEBUG, "unkown type %s\n", GC_m2s (type)); |
2247 | GNUNET_assert (0); | 2247 | GNUNET_assert (0); |
2248 | } | 2248 | } |
2249 | memcpy (&msg[1], message, size); | 2249 | GNUNET_memcpy (&msg[1], message, size); |
2250 | 2250 | ||
2251 | fwd = GCC_is_origin (c, GNUNET_YES); | 2251 | fwd = GCC_is_origin (c, GNUNET_YES); |
2252 | 2252 | ||