gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r13159 - gnunet/src/include


From: gnunet
Subject: [GNUnet-SVN] r13159 - gnunet/src/include
Date: Tue, 5 Oct 2010 17:26:22 +0200

Author: grothoff
Date: 2010-10-05 17:26:22 +0200 (Tue, 05 Oct 2010)
New Revision: 13159

Modified:
   gnunet/src/include/gnunet_block_lib.h
   gnunet/src/include/gnunet_datacache_lib.h
Log:
stuff

Modified: gnunet/src/include/gnunet_block_lib.h
===================================================================
--- gnunet/src/include/gnunet_block_lib.h       2010-10-05 14:45:38 UTC (rev 
13158)
+++ gnunet/src/include/gnunet_block_lib.h       2010-10-05 15:26:22 UTC (rev 
13159)
@@ -87,8 +87,14 @@
     /**
      * Block for testing.
      */
-    GNUNET_BLOCK_TYPE_TEST = 8
+    GNUNET_BLOCK_TYPE_TEST = 8,
 
+#if HAVE_MALICIOUS    
+    /**
+     * Block for simulating malicious peers.
+     */
+    GNUNET_BLOCK_DHT_MALICIOUS_MESSAGE_TYPE = 9
+#endif
   };
 
 
@@ -212,7 +218,9 @@
  * @param block block to get the key for
  * @param block_size number of bytes in block
  * @param key set to the key (query) for the given block
- * @return GNUNET_OK on success, GNUNET_SYSERR if type not supported
+ * @return GNUNET_OK on success, 
+ *         GNUNET_NO if the block is malformed, FIXME: cg!
+ *         GNUNET_SYSERR if type not supported
  *         (or if extracting a key from a block of this type does not work)
  */
 int

Modified: gnunet/src/include/gnunet_datacache_lib.h
===================================================================
--- gnunet/src/include/gnunet_datacache_lib.h   2010-10-05 14:45:38 UTC (rev 
13158)
+++ gnunet/src/include/gnunet_datacache_lib.h   2010-10-05 15:26:22 UTC (rev 
13159)
@@ -85,7 +85,7 @@
 typedef int (*GNUNET_DATACACHE_Iterator) (void *cls,
                                          struct GNUNET_TIME_Absolute exp,
                                          const GNUNET_HashCode * key,
-                                         uint32_t size,
+                                         uint32_t size, /* FIXME: use size_t? 
*/
                                          const char *data,
                                          enum GNUNET_BLOCK_Type type);
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]