remove SHA-512 code, use libgcrypt implementation
[oweals/gnunet.git] / src / dht / test_dht_twopeer_put_get.c
index 16a184e92d0dba6dc567d8d20a0cf8a0f23f16ab..1aa83716b0a2f9bd700561691bbbe8cfe722728d 100644 (file)
@@ -42,7 +42,7 @@
 #include "gnunet_dht_service.h"
 
 /* DEFINES */
-#define VERBOSE GNUNET_YES
+#define VERBOSE GNUNET_NO
 
 /* Timeout for entire testcase */
 #define TIMEOUT GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MINUTES, 5)
@@ -210,7 +210,7 @@ void get_result_iterator (void *cls,
                          const struct GNUNET_PeerIdentity * const *get_path,
                          const struct GNUNET_PeerIdentity * const *put_path,
                          enum GNUNET_BLOCK_Type type,
-                          uint32_t size,
+                          size_t size,
                           const void *data)
 {
   GNUNET_HashCode original_key; /* Key data was stored data under */
@@ -241,7 +241,8 @@ do_get (void *cls, const struct GNUNET_SCHEDULER_TaskContext * tc)
   GNUNET_HashCode key; /* Key for data lookup */
   memset(&key, 42, sizeof(GNUNET_HashCode)); /* Set the key to the same thing as when data was inserted */
   global_get_handle = GNUNET_DHT_get_start(peer2dht, GNUNET_TIME_relative_get_forever(),
-                                          1 /* FIXME: use real type */, &key,
+                                          GNUNET_BLOCK_TYPE_TEST,
+                                          &key,
                                           GNUNET_DHT_RO_NONE,
                                           NULL, 0,
                                           NULL, 0,
@@ -276,7 +277,7 @@ do_put (void *cls, const struct GNUNET_SCHEDULER_TaskContext * tc)
   GNUNET_DHT_put(peer1dht,
                  &key,
                 GNUNET_DHT_RO_NONE,
-                 1 /* FIXME: use real type */,
+                 GNUNET_BLOCK_TYPE_TEST,
                  sizeof(data), data,
                  GNUNET_TIME_UNIT_FOREVER_ABS,
                  GNUNET_TIME_UNIT_FOREVER_REL,