gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r29723 - in gnunet/src: arm hello include peerinfo statisti


From: gnunet
Subject: [GNUnet-SVN] r29723 - in gnunet/src: arm hello include peerinfo statistics testing util
Date: Mon, 30 Sep 2013 21:24:13 +0200

Author: grothoff
Date: 2013-09-30 21:24:12 +0200 (Mon, 30 Sep 2013)
New Revision: 29723

Modified:
   gnunet/src/arm/arm_api.c
   gnunet/src/arm/mockup-service.c
   gnunet/src/hello/hello.c
   gnunet/src/include/gnunet_arm_service.h
   gnunet/src/include/gnunet_client_lib.h
   gnunet/src/include/gnunet_common.h
   gnunet/src/include/gnunet_configuration_lib.h
   gnunet/src/include/gnunet_crypto_lib.h
   gnunet/src/include/gnunet_hello_lib.h
   gnunet/src/include/gnunet_strings_lib.h
   gnunet/src/include/gnunet_util_lib.h
   gnunet/src/peerinfo/gnunet-service-peerinfo.c
   gnunet/src/peerinfo/peerinfo_api.c
   gnunet/src/peerinfo/peerinfo_api_notify.c
   gnunet/src/statistics/gnunet-statistics.c
   gnunet/src/statistics/statistics_api.c
   gnunet/src/testing/testing.c
   gnunet/src/util/Makefile.am
   gnunet/src/util/common_allocation.c
   gnunet/src/util/common_endian.c
   gnunet/src/util/common_logging.c
   gnunet/src/util/configuration.c
   gnunet/src/util/connection.c
   gnunet/src/util/container_bloomfilter.c
   gnunet/src/util/container_meta_data.c
   gnunet/src/util/container_multihashmap.c
   gnunet/src/util/container_multihashmap32.c
   gnunet/src/util/container_multipeermap.c
   gnunet/src/util/crypto_crc.c
   gnunet/src/util/crypto_ecc.c
   gnunet/src/util/crypto_hash.c
   gnunet/src/util/crypto_random.c
   gnunet/src/util/crypto_symmetric.c
   gnunet/src/util/disk.c
   gnunet/src/util/disk.h
   gnunet/src/util/getopt.c
   gnunet/src/util/getopt_helpers.c
   gnunet/src/util/gnunet-ecc.c
   gnunet/src/util/mq.c
   gnunet/src/util/network.c
   gnunet/src/util/os_installation.c
   gnunet/src/util/os_network.c
   gnunet/src/util/os_priority.c
   gnunet/src/util/peer.c
   gnunet/src/util/plugin.c
   gnunet/src/util/program.c
   gnunet/src/util/scheduler.c
   gnunet/src/util/server.c
   gnunet/src/util/server_mst.c
   gnunet/src/util/server_nc.c
   gnunet/src/util/server_tc.c
   gnunet/src/util/service.c
   gnunet/src/util/signal.c
   gnunet/src/util/strings.c
   gnunet/src/util/test_client.c
   gnunet/src/util/test_common_allocation.c
   gnunet/src/util/test_common_endian.c
   gnunet/src/util/test_common_logging.c
   gnunet/src/util/test_common_logging_dummy.c
   gnunet/src/util/test_common_logging_runtime_loglevels.c
   gnunet/src/util/test_configuration.c
   gnunet/src/util/test_connection.c
   gnunet/src/util/test_connection_addressing.c
   gnunet/src/util/test_connection_receive_cancel.c
   gnunet/src/util/test_connection_timeout.c
   gnunet/src/util/test_connection_timeout_no_connect.c
   gnunet/src/util/test_connection_transmit_cancel.c
   gnunet/src/util/test_container_bloomfilter.c
   gnunet/src/util/test_container_heap.c
   gnunet/src/util/test_container_meta_data.c
   gnunet/src/util/test_container_multihashmap.c
   gnunet/src/util/test_container_multihashmap32.c
   gnunet/src/util/test_container_multipeermap.c
   gnunet/src/util/test_container_slist.c
   gnunet/src/util/test_crypto_crc.c
   gnunet/src/util/test_crypto_hash.c
   gnunet/src/util/test_crypto_random.c
   gnunet/src/util/test_crypto_symmetric.c
   gnunet/src/util/test_disk.c
   gnunet/src/util/test_getopt.c
   gnunet/src/util/test_mq_client.c
   gnunet/src/util/test_os_network.c
   gnunet/src/util/test_os_start_process.c
   gnunet/src/util/test_peer.c
   gnunet/src/util/test_plugin.c
   gnunet/src/util/test_program.c
   gnunet/src/util/test_scheduler.c
   gnunet/src/util/test_server.c
   gnunet/src/util/test_server_disconnect.c
   gnunet/src/util/test_server_mst_interrupt.c
   gnunet/src/util/test_server_with_client.c
   gnunet/src/util/test_server_with_client_unix.c
   gnunet/src/util/test_service.c
   gnunet/src/util/test_strings.c
   gnunet/src/util/test_strings_to_data.c
   gnunet/src/util/time.c
Log:
-towards addressing #3047, note this causes the code to FTBFS

Modified: gnunet/src/arm/arm_api.c
===================================================================
--- gnunet/src/arm/arm_api.c    2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/arm/arm_api.c    2013-09-30 19:24:12 UTC (rev 29723)
@@ -25,8 +25,8 @@
  * @author LRN
  */
 #include "platform.h"
+#include "gnunet_util_lib.h"
 #include "gnunet_arm_service.h"
-#include "gnunet_util_lib.h"
 #include "gnunet_protocols.h"
 #include "arm.h"
 

Modified: gnunet/src/arm/mockup-service.c
===================================================================
--- gnunet/src/arm/mockup-service.c     2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/arm/mockup-service.c     2013-09-30 19:24:12 UTC (rev 29723)
@@ -20,13 +20,8 @@
 
 #include <stdlib.h>
 #include "platform.h"
-#include "gnunet_disk_lib.h"
-#include "gnunet_getopt_lib.h"
+#include "gnunet_util_lib.h"
 #include "gnunet_protocols.h"
-#include "gnunet_service_lib.h"
-#include "gnunet_statistics_service.h"
-#include "gnunet_strings_lib.h"
-#include "gnunet_time_lib.h"
 
 
 static int special_ret = 0;

Modified: gnunet/src/hello/hello.c
===================================================================
--- gnunet/src/hello/hello.c    2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/hello/hello.c    2013-09-30 19:24:12 UTC (rev 29723)
@@ -296,9 +296,7 @@
   insize = msize - sizeof (struct GNUNET_HELLO_Message);
   wpos = 0;
   woff = (ret != NULL) ? (char *) &ret[1] : NULL;
-  GNUNET_CRYPTO_hash (&msg->publicKey,
-                      sizeof (struct GNUNET_CRYPTO_EccPublicSignKey),
-                      &address.peer.hashPubKey);
+  address.peer.public_key = msg->publicKey;
   while (insize > 0)
   {
     esize = get_hello_address_size (inptr, insize, &alen);
@@ -549,7 +547,7 @@
  *
  * @param hello the hello message
  * @param peer where to store the peer's identity
- * @return GNUNET_SYSERR if the HELLO was malformed
+ * @return #GNUNET_SYSERR if the HELLO was malformed
  */
 int
 GNUNET_HELLO_get_id (const struct GNUNET_HELLO_Message *hello,
@@ -560,9 +558,7 @@
   if ((ret < sizeof (struct GNUNET_HELLO_Message)) ||
       (ntohs (hello->header.type) != GNUNET_MESSAGE_TYPE_HELLO))
     return GNUNET_SYSERR;
-  GNUNET_CRYPTO_hash (&hello->publicKey,
-                      sizeof (struct GNUNET_CRYPTO_EccPublicSignKey),
-                      &peer->hashPubKey);
+  peer->public_key = hello->publicKey;
   return GNUNET_OK;
 }
 

Modified: gnunet/src/include/gnunet_arm_service.h
===================================================================
--- gnunet/src/include/gnunet_arm_service.h     2013-09-30 19:07:10 UTC (rev 
29722)
+++ gnunet/src/include/gnunet_arm_service.h     2013-09-30 19:24:12 UTC (rev 
29723)
@@ -35,10 +35,7 @@
 #endif
 #endif
 
-#include "gnunet_configuration_lib.h"
-#include "gnunet_scheduler_lib.h"
-#include "gnunet_os_lib.h"
-#include "gnunet_time_lib.h"
+#include "gnunet_util_lib.h"
 
 /**
  * Version of the arm API.

Modified: gnunet/src/include/gnunet_client_lib.h
===================================================================
--- gnunet/src/include/gnunet_client_lib.h      2013-09-30 19:07:10 UTC (rev 
29722)
+++ gnunet/src/include/gnunet_client_lib.h      2013-09-30 19:24:12 UTC (rev 
29723)
@@ -37,11 +37,6 @@
 #endif
 #endif
 
-#include "gnunet_common.h"
-#include "gnunet_configuration_lib.h"
-#include "gnunet_connection_lib.h"
-#include "gnunet_scheduler_lib.h"
-#include "gnunet_time_lib.h"
 
 /**
  * Opaque handle for a connection to a service.

Modified: gnunet/src/include/gnunet_common.h
===================================================================
--- gnunet/src/include/gnunet_common.h  2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/include/gnunet_common.h  2013-09-30 19:24:12 UTC (rev 29723)
@@ -248,24 +248,6 @@
 
 };
 
-
-/**
- * @brief A SHA-512 hashcode
- */
-struct GNUNET_HashCode
-{
-  uint32_t bits[512 / 8 / sizeof (uint32_t)];   /* = 16 */
-};
-
-
-/**
- * The identity of the host (basically the SHA-512 hashcode of
- * it's public key).
- */
-struct GNUNET_PeerIdentity
-{
-  struct GNUNET_HashCode hashPubKey;
-};
 GNUNET_NETWORK_STRUCT_END
 
 /**
@@ -273,9 +255,9 @@
  *
  * @param cls closure
  * @param filename complete filename (absolute path)
- * @return GNUNET_OK to continue to iterate,
- *  GNUNET_NO to stop iteration with no error,
- *  GNUNET_SYSERR to abort iteration with error!
+ * @return #GNUNET_OK to continue to iterate,
+ *  #GNUNET_NO to stop iteration with no error,
+ *  #GNUNET_SYSERR to abort iteration with error!
  */
 typedef int (*GNUNET_FileNameCallback) (void *cls, const char *filename);
 
@@ -325,8 +307,10 @@
 
 #if !defined(GNUNET_CULL_LOGGING)
 int
-GNUNET_get_log_call_status (int caller_level, const char *comp,
-                            const char *file, const char *function, int line);
+GNUNET_get_log_call_status (int caller_level, 
+                            const char *comp,
+                            const char *file, 
+                            const char *function, int line);
 #endif
 
 
@@ -529,7 +513,7 @@
  *
  * @param pid the peer identity
  * @return string form of the pid; will be overwritten by next
- *         call to GNUNET_i2s.
+ *         call to #GNUNET_i2s.
  */
 const char *
 GNUNET_i2s (const struct GNUNET_PeerIdentity *pid);
@@ -543,7 +527,7 @@
  *
  * @param pid the peer identity
  * @return string form of the pid; will be overwritten by next
- *         call to GNUNET_i2s.
+ *         call to #GNUNET_i2s.
  */
 const char *
 GNUNET_i2s_full (const struct GNUNET_PeerIdentity *pid);
@@ -688,8 +672,8 @@
 
 /**
  * @ingroup memory
- * Allocate a struct or union of the given 'type'.
- * Wrapper around GNUNET_malloc that returns a pointer
+ * Allocate a struct or union of the given @a type.
+ * Wrapper around #GNUNET_malloc that returns a pointer
  * to the newly created object of the correct type.
  *
  * @param type name of the struct or union, i.e. pass 'struct Foo'.
@@ -741,17 +725,17 @@
  * @ingroup memory
  * Wrapper around free. Frees the memory referred to by ptr.
  * Note that is is generally better to free memory that was
- * allocated with GNUNET_array_grow using GNUNET_array_grow(mem, size, 0) 
instead of GNUNET_free.
+ * allocated with #GNUNET_array_grow using #GNUNET_array_grow(mem, size, 0) 
instead of #GNUNET_free.
  *
  * @param ptr location where to free the memory. ptr must have
- *     been returned by GNUNET_strdup, GNUNET_strndup, GNUNET_malloc or 
GNUNET_array_grow earlier.
+ *     been returned by #GNUNET_strdup, #GNUNET_strndup, #GNUNET_malloc or 
#GNUNET_array_grow earlier.
  */
 #define GNUNET_free(ptr) GNUNET_xfree_(ptr, __FILE__, __LINE__)
 
 /**
  * @ingroup memory
  * Free the memory pointed to by ptr if ptr is not NULL.
- * Equivalent to if (ptr!=null)GNUNET_free(ptr).
+ * Equivalent to `if (NULL != ptr) GNUNET_free(ptr)`.
  *
  * @param ptr the location in memory to free
  */
@@ -759,7 +743,7 @@
 
 /**
  * @ingroup memory
- * Wrapper around GNUNET_strdup.  Makes a copy of the zero-terminated string
+ * Wrapper around #GNUNET_xstrdup_.  Makes a copy of the zero-terminated string
  * pointed to by a.
  *
  * @param a pointer to a zero-terminated string
@@ -769,7 +753,7 @@
 
 /**
  * @ingroup memory
- * Wrapper around GNUNET_strndup.  Makes a partial copy of the string
+ * Wrapper around #GNUNET_xstrndup_.  Makes a partial copy of the string
  * pointed to by a.
  *
  * @param a pointer to a string
@@ -781,8 +765,8 @@
 /**
  * @ingroup memory
  * Grow a well-typed (!) array.  This is a convenience
- * method to grow a vector <tt>arr</tt> of size <tt>size</tt>
- * to the new (target) size <tt>tsize</tt>.
+ * method to grow a vector @a arr of size @a size
+ * to the new (target) size @a tsize.
  * <p>
  *
  * Example (simple, well-typed stack):
@@ -826,7 +810,7 @@
  * Like snprintf, just aborts if the buffer is of insufficient size.
  *
  * @param buf pointer to buffer that is written to
- * @param size number of bytes in buf
+ * @param size number of bytes in @a buf
  * @param format format strings
  * @param ... data for format string
  * @return number of bytes written to buf or negative value on error
@@ -853,7 +837,7 @@
 /**
  * Allocate memory. Checks the return value, aborts if no more
  * memory is available.  Don't use GNUNET_xmalloc_ directly. Use the
- * GNUNET_malloc macro.
+ * #GNUNET_malloc macro.
  * The memory will be zero'ed out.
  *
  * @param size number of bytes to allocate
@@ -868,7 +852,7 @@
 /**
  * Allocate and initialize memory. Checks the return value, aborts if no more
  * memory is available.  Don't use GNUNET_xmemdup_ directly. Use the
- * GNUNET_memdup macro.
+ * #GNUNET_memdup macro.
  *
  * @param buf buffer to initialize from (must contain size bytes)
  * @param size number of bytes to allocate
@@ -885,7 +869,7 @@
  * Allocate memory.  This function does not check if the allocation
  * request is within reasonable bounds, allowing allocations larger
  * than 40 MB.  If you don't expect the possibility of very large
- * allocations, use GNUNET_malloc instead.  The memory will be zero'ed
+ * allocations, use #GNUNET_malloc instead.  The memory will be zero'ed
  * out.
  *
  * @param size number of bytes to allocate
@@ -896,6 +880,7 @@
 void *
 GNUNET_xmalloc_unchecked_ (size_t size, const char *filename, int linenumber);
 
+
 /**
  * Reallocate memory. Checks the return value, aborts if no more
  * memory is available.
@@ -903,10 +888,11 @@
 void *
 GNUNET_xrealloc_ (void *ptr, size_t n, const char *filename, int linenumber);
 
+
 /**
  * Free memory. Merely a wrapper for the case that we
  * want to keep track of allocations.  Don't use GNUNET_xfree_
- * directly. Use the GNUNET_free macro.
+ * directly. Use the #GNUNET_free macro.
  *
  * @param ptr pointer to memory to free
  * @param filename where is this call being made (for debugging)
@@ -917,7 +903,7 @@
 
 
 /**
- * Dup a string. Don't call GNUNET_xstrdup_ directly. Use the GNUNET_strdup 
macro.
+ * Dup a string. Don't call GNUNET_xstrdup_ directly. Use the #GNUNET_strdup 
macro.
  * @param str string to duplicate
  * @param filename where is this call being made (for debugging)
  * @param linenumber line where this call is being made (for debugging)
@@ -927,7 +913,7 @@
 GNUNET_xstrdup_ (const char *str, const char *filename, int linenumber);
 
 /**
- * Dup partially a string. Don't call GNUNET_xstrndup_ directly. Use the 
GNUNET_strndup macro.
+ * Dup partially a string. Don't call GNUNET_xstrndup_ directly. Use the 
#GNUNET_strndup macro.
  *
  * @param str string to duplicate
  * @param len length of the string to duplicate
@@ -944,7 +930,7 @@
  * Grows old by (*oldCount-newCount)*elementSize
  * bytes and sets *oldCount to newCount.
  *
- * Don't call GNUNET_xgrow_ directly. Use the GNUNET_array_grow macro.
+ * Don't call GNUNET_xgrow_ directly. Use the #GNUNET_array_grow macro.
  *
  * @param old address of the pointer to the array
  *        *old may be NULL

Modified: gnunet/src/include/gnunet_configuration_lib.h
===================================================================
--- gnunet/src/include/gnunet_configuration_lib.h       2013-09-30 19:07:10 UTC 
(rev 29722)
+++ gnunet/src/include/gnunet_configuration_lib.h       2013-09-30 19:24:12 UTC 
(rev 29723)
@@ -37,9 +37,6 @@
 #endif
 #endif
 
-#include "gnunet_common.h"
-#include "gnunet_time_lib.h"
-
 /**
  * A configuration object.
  */

Modified: gnunet/src/include/gnunet_crypto_lib.h
===================================================================
--- gnunet/src/include/gnunet_crypto_lib.h      2013-09-30 19:07:10 UTC (rev 
29722)
+++ gnunet/src/include/gnunet_crypto_lib.h      2013-09-30 19:24:12 UTC (rev 
29723)
@@ -43,11 +43,30 @@
 #endif
 #endif
 
+/**
+ * @brief A 512-bit hashcode
+ */
+struct GNUNET_HashCode;
+
+/**
+ * The identity of the host (wraps the signing key of the peer).
+ */
+struct GNUNET_PeerIdentity;
+
 #include "gnunet_common.h"
 #include "gnunet_scheduler_lib.h"
 
 
 /**
+ * @brief A 512-bit hashcode
+ */
+struct GNUNET_HashCode
+{
+  uint32_t bits[512 / 8 / sizeof (uint32_t)];   /* = 16 */
+};
+
+
+/**
  * Maximum length of an ECC signature.
  * Note: round up to multiple of 8 minus 2 for alignment.
  */
@@ -170,7 +189,17 @@
 };
 
 
+
 /**
+ * The identity of the host (wraps the signing key of the peer).
+ */
+struct GNUNET_PeerIdentity
+{
+  struct GNUNET_CRYPTO_EccPublicSignKey public_key;
+};
+
+
+/**
  * Public ECC key (always for NIST P-521) encoded in a format suitable
  * for network transmission and encryption (ECDH).
  */
@@ -556,7 +585,7 @@
  */
 void
 GNUNET_CRYPTO_hash_create_random (enum GNUNET_CRYPTO_Quality mode,
-                                  struct GNUNET_HashCode * result);
+                                  struct GNUNET_HashCode *result);
 
 
 /**

Modified: gnunet/src/include/gnunet_hello_lib.h
===================================================================
--- gnunet/src/include/gnunet_hello_lib.h       2013-09-30 19:07:10 UTC (rev 
29722)
+++ gnunet/src/include/gnunet_hello_lib.h       2013-09-30 19:24:12 UTC (rev 
29723)
@@ -35,8 +35,7 @@
 #endif
 #endif
 
-#include "gnunet_common.h"
-#include "gnunet_crypto_lib.h"
+#include "gnunet_util_lib.h"
 
 
 /**

Modified: gnunet/src/include/gnunet_strings_lib.h
===================================================================
--- gnunet/src/include/gnunet_strings_lib.h     2013-09-30 19:07:10 UTC (rev 
29722)
+++ gnunet/src/include/gnunet_strings_lib.h     2013-09-30 19:24:12 UTC (rev 
29723)
@@ -55,7 +55,7 @@
  *
  * @param fancy_size human readable string (i.e. 1 MB)
  * @param size set to the size in bytes
- * @return GNUNET_OK on success, GNUNET_SYSERR on error
+ * @return #GNUNET_OK on success, #GNUNET_SYSERR on error
  */
 int
 GNUNET_STRINGS_fancy_size_to_bytes (const char *fancy_size,
@@ -68,7 +68,7 @@
  *
  * @param fancy_time human readable string (i.e. 1 minute)
  * @param rtime set to the relative time
- * @return GNUNET_OK on success, GNUNET_SYSERR on error
+ * @return #GNUNET_OK on success, #GNUNET_SYSERR on error
  */
 int
 GNUNET_STRINGS_fancy_time_to_relative (const char *fancy_time,

Modified: gnunet/src/include/gnunet_util_lib.h
===================================================================
--- gnunet/src/include/gnunet_util_lib.h        2013-09-30 19:07:10 UTC (rev 
29722)
+++ gnunet/src/include/gnunet_util_lib.h        2013-09-30 19:24:12 UTC (rev 
29723)
@@ -36,14 +36,14 @@
 #endif
 #endif
 
+#include "gnunet_crypto_lib.h"
 #include "gnunet_common.h"
 #include "gnunet_bandwidth_lib.h"
 #include "gnunet_bio_lib.h"
+#include "gnunet_connection_lib.h"
 #include "gnunet_client_lib.h"
 #include "gnunet_configuration_lib.h"
-#include "gnunet_connection_lib.h"
 #include "gnunet_container_lib.h"
-#include "gnunet_crypto_lib.h"
 #include "gnunet_disk_lib.h"
 #include "gnunet_getopt_lib.h"
 #include "gnunet_helper_lib.h"

Modified: gnunet/src/peerinfo/gnunet-service-peerinfo.c
===================================================================
--- gnunet/src/peerinfo/gnunet-service-peerinfo.c       2013-09-30 19:07:10 UTC 
(rev 29722)
+++ gnunet/src/peerinfo/gnunet-service-peerinfo.c       2013-09-30 19:24:12 UTC 
(rev 29723)
@@ -136,7 +136,7 @@
  * The in-memory list of known hosts, mapping of
  * host IDs to 'struct HostEntry*' values.
  */
-static struct GNUNET_CONTAINER_MultiHashMap *hostmap;
+static struct GNUNET_CONTAINER_MultiPeerMap *hostmap;
 
 /**
  * Clients to immediately notify about all changes.
@@ -249,13 +249,12 @@
 static char *
 get_host_filename (const struct GNUNET_PeerIdentity *id)
 {
-  struct GNUNET_CRYPTO_HashAsciiEncoded fil;
   char *fn;
 
   if (NULL == networkIdDirectory)
     return NULL;
-  GNUNET_CRYPTO_hash_to_enc (&id->hashPubKey, &fil);
-  GNUNET_asprintf (&fn, "%s%s%s", networkIdDirectory, DIR_SEPARATOR_STR, &fil);
+  GNUNET_asprintf (&fn, "%s%s%s", networkIdDirectory, DIR_SEPARATOR_STR,
+                   GNUNET_i2s_full (id));
   return fn;
 }
 
@@ -441,7 +440,7 @@
   struct ReadHostFileContext r;
   char *fn;
 
-  entry = GNUNET_CONTAINER_multihashmap_get (hostmap, &identity->hashPubKey);
+  entry = GNUNET_CONTAINER_multipeermap_get (hostmap, identity);
   if (NULL == entry)
   {
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Adding new peer `%s'\n", GNUNET_i2s 
(identity));
@@ -449,7 +448,7 @@
                              GNUNET_NO);
     entry = GNUNET_malloc (sizeof (struct HostEntry));
     entry->identity = *identity;
-    GNUNET_CONTAINER_multihashmap_put (hostmap, &entry->identity.hashPubKey, 
entry,
+    GNUNET_CONTAINER_multipeermap_put (hostmap, &entry->identity, entry,
                                       
GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY);
     notify_all (entry);
     fn = get_host_filename (identity);
@@ -576,7 +575,9 @@
       remove_garbage (fullname);
     return GNUNET_OK;
   }
-  if (GNUNET_OK == GNUNET_CRYPTO_hash_from_string (filename, 
&identity.hashPubKey))
+  if (GNUNET_OK == GNUNET_CRYPTO_ecc_public_sign_key_from_string (filename, 
+                                                                  strlen 
(filename),
+                                                                  
&identity.public_key))
   {
     if (0 != memcmp (&id, &identity, sizeof (id_friend)))
     {
@@ -699,7 +700,7 @@
   int pos;
   char *buffer;
 
-  host = GNUNET_CONTAINER_multihashmap_get (hostmap, &peer->hashPubKey);
+  host = GNUNET_CONTAINER_multipeermap_get (hostmap, peer);
   GNUNET_assert (NULL != host);
 
   friend_hello_type = GNUNET_HELLO_is_friend_only (hello);
@@ -830,7 +831,7 @@
  * @return GNUNET_YES (continue to iterate)
  */
 static int
-add_to_tc (void *cls, const struct GNUNET_HashCode * key, void *value)
+add_to_tc (void *cls, const struct GNUNET_PeerIdentity *key, void *value)
 {
   struct TransmitContext *tc = cls;
   struct HostEntry *pos = value;
@@ -848,8 +849,9 @@
     GNUNET_assert (hs < GNUNET_SERVER_MAX_MESSAGE_SIZE -
                    sizeof (struct InfoMessage));
     memcpy (&im[1], pos->hello, hs);
-    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Sending public HELLO with size %u 
for peer `%4s'\n",
-               hs, GNUNET_h2s (key));
+    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+                "Sending public HELLO with size %u for peer `%4s'\n",
+               hs, GNUNET_i2s (key));
   }
   else if ((pos->friend_only_hello != NULL) && (GNUNET_YES == tc->friend_only))
   {
@@ -858,13 +860,15 @@
     GNUNET_assert (hs < GNUNET_SERVER_MAX_MESSAGE_SIZE -
                    sizeof (struct InfoMessage));
     memcpy (&im[1], pos->friend_only_hello, hs);
-    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Sending friend-only HELLO with size 
%u for peer `%4s'\n",
-               hs, GNUNET_h2s (key));
+    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 
+                "Sending friend-only HELLO with size %u for peer `%4s'\n",
+               hs, GNUNET_i2s (key));
   }
   else
   {
-      GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Adding no HELLO for peer `%s'\n",
-                GNUNET_h2s (key));
+      GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 
+                  "Adding no HELLO for peer `%s'\n",
+                GNUNET_i2s (key));
   }
 
   im->header.type = htons (GNUNET_MESSAGE_TYPE_PEERINFO_INFO);
@@ -1027,7 +1031,7 @@
               "GET", GNUNET_i2s (&lpm->peer));
   tcx.friend_only = ntohl (lpm->include_friend_only);
   tcx.tc = GNUNET_SERVER_transmit_context_create (client);
-  GNUNET_CONTAINER_multihashmap_get_multiple (hostmap, &lpm->peer.hashPubKey,
+  GNUNET_CONTAINER_multipeermap_get_multiple (hostmap, &lpm->peer,
                                               &add_to_tc, &tcx);
   GNUNET_SERVER_transmit_context_append_data (tcx.tc, NULL, 0,
                                               
GNUNET_MESSAGE_TYPE_PEERINFO_INFO_END);
@@ -1053,7 +1057,7 @@
   tcx.friend_only = ntohl (lapm->include_friend_only);
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "`%s' message received\n", "GET_ALL");
   tcx.tc = GNUNET_SERVER_transmit_context_create (client);
-  GNUNET_CONTAINER_multihashmap_iterate (hostmap, &add_to_tc, &tcx);
+  GNUNET_CONTAINER_multipeermap_iterate (hostmap, &add_to_tc, &tcx);
   GNUNET_SERVER_transmit_context_append_data (tcx.tc, NULL, 0,
                                               
GNUNET_MESSAGE_TYPE_PEERINFO_INFO_END);
   GNUNET_SERVER_transmit_context_run (tcx.tc, GNUNET_TIME_UNIT_FOREVER_REL);
@@ -1071,7 +1075,7 @@
  * @return GNUNET_YES (always, continue to iterate)
  */
 static int
-do_notify_entry (void *cls, const struct GNUNET_HashCode * key, void *value)
+do_notify_entry (void *cls, const struct GNUNET_PeerIdentity *key, void *value)
 {
   struct NotificationContext *nc = cls;
   struct HostEntry *he = value;
@@ -1124,7 +1128,7 @@
   GNUNET_CONTAINER_DLL_insert (nc_head, nc_tail, nc);
   GNUNET_SERVER_client_mark_monitor (client);
        GNUNET_SERVER_notification_context_add (notify_list, client);
-  GNUNET_CONTAINER_multihashmap_iterate (hostmap, &do_notify_entry, nc);
+  GNUNET_CONTAINER_multipeermap_iterate (hostmap, &do_notify_entry, nc);
   GNUNET_SERVER_receive_done (client, GNUNET_OK);
 }
 
@@ -1159,7 +1163,7 @@
  * @return GNUNET_YES (continue to iterate)
  */
 static int
-free_host_entry (void *cls, const struct GNUNET_HashCode * key, void *value)
+free_host_entry (void *cls, const struct GNUNET_PeerIdentity *key, void *value)
 {
   struct HostEntry *he = value;
 
@@ -1191,8 +1195,8 @@
     GNUNET_CONTAINER_DLL_remove (nc_head, nc_tail, cur);
     GNUNET_free (cur);
   }
-  GNUNET_CONTAINER_multihashmap_iterate (hostmap, &free_host_entry, NULL);
-  GNUNET_CONTAINER_multihashmap_destroy (hostmap);
+  GNUNET_CONTAINER_multipeermap_iterate (hostmap, &free_host_entry, NULL);
+  GNUNET_CONTAINER_multipeermap_destroy (hostmap);
   if (NULL != stats)
   {
     GNUNET_STATISTICS_destroy (stats, GNUNET_NO);
@@ -1228,7 +1232,7 @@
   int noio;
   int use_included;
 
-  hostmap = GNUNET_CONTAINER_multihashmap_create (1024, GNUNET_YES);
+  hostmap = GNUNET_CONTAINER_multipeermap_create (1024, GNUNET_YES);
   stats = GNUNET_STATISTICS_create ("peerinfo", cfg);
   notify_list = GNUNET_SERVER_notification_context_create (server, 0);
   noio = GNUNET_CONFIGURATION_get_value_yesno (cfg, "peerinfo", "NO_IO");

Modified: gnunet/src/peerinfo/peerinfo_api.c
===================================================================
--- gnunet/src/peerinfo/peerinfo_api.c  2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/peerinfo/peerinfo_api.c  2013-09-30 19:24:12 UTC (rev 29723)
@@ -24,11 +24,8 @@
  * @author Christian Grothoff
  */
 #include "platform.h"
-#include "gnunet_client_lib.h"
-#include "gnunet_container_lib.h"
-#include "gnunet_peerinfo_service.h"
+#include "gnunet_util_lib.h"
 #include "gnunet_protocols.h"
-#include "gnunet_time_lib.h"
 #include "peerinfo.h"
 
 #define LOG(kind,...) GNUNET_log_from (kind, "peerinfo-api",__VA_ARGS__)
@@ -558,7 +555,7 @@
     /* bogus message (from a different iteration call?); out of sequence! */
     LOG (GNUNET_ERROR_TYPE_ERROR,
          "Received HELLO for peer `%s', expected peer `%s'\n",
-        GNUNET_h2s (&im->peer.hashPubKey),
+        GNUNET_i2s (&im->peer),
         GNUNET_i2s (&ic->peer));
     
     GNUNET_break (0);

Modified: gnunet/src/peerinfo/peerinfo_api_notify.c
===================================================================
--- gnunet/src/peerinfo/peerinfo_api_notify.c   2013-09-30 19:07:10 UTC (rev 
29722)
+++ gnunet/src/peerinfo/peerinfo_api_notify.c   2013-09-30 19:24:12 UTC (rev 
29723)
@@ -24,10 +24,9 @@
  * @author Christian Grothoff
  */
 #include "platform.h"
-#include "gnunet_client_lib.h"
+#include "gnunet_util_lib.h"
 #include "gnunet_peerinfo_service.h"
 #include "gnunet_protocols.h"
-#include "gnunet_time_lib.h"
 #include "peerinfo.h"
 
 #define LOG(kind,...) GNUNET_log_from (kind, "nse-api",__VA_ARGS__)

Modified: gnunet/src/statistics/gnunet-statistics.c
===================================================================
--- gnunet/src/statistics/gnunet-statistics.c   2013-09-30 19:07:10 UTC (rev 
29722)
+++ gnunet/src/statistics/gnunet-statistics.c   2013-09-30 19:24:12 UTC (rev 
29723)
@@ -25,8 +25,6 @@
  * @author Igor Wronsky
  */
 #include "platform.h"
-#include "gnunet_getopt_lib.h"
-#include "gnunet_program_lib.h"
 #include "gnunet_util_lib.h"
 #include "gnunet_statistics_service.h"
 #include "statistics.h"

Modified: gnunet/src/statistics/statistics_api.c
===================================================================
--- gnunet/src/statistics/statistics_api.c      2013-09-30 19:07:10 UTC (rev 
29722)
+++ gnunet/src/statistics/statistics_api.c      2013-09-30 19:24:12 UTC (rev 
29723)
@@ -24,13 +24,10 @@
  * @author Christian Grothoff
  */
 #include "platform.h"
-#include "gnunet_client_lib.h"
+#include "gnunet_util_lib.h"
 #include "gnunet_constants.h"
-#include "gnunet_container_lib.h"
 #include "gnunet_protocols.h"
-#include "gnunet_server_lib.h"
 #include "gnunet_statistics_service.h"
-#include "gnunet_strings_lib.h"
 #include "statistics.h"
 
 /**

Modified: gnunet/src/testing/testing.c
===================================================================
--- gnunet/src/testing/testing.c        2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/testing/testing.c        2013-09-30 19:24:12 UTC (rev 29723)
@@ -701,7 +701,6 @@
                            struct GNUNET_PeerIdentity *id)
 {  
   struct GNUNET_CRYPTO_EccPrivateKey *private_key;
-  struct GNUNET_CRYPTO_EccPublicSignKey public_key;
   
   if ((NULL == id) || (NULL == system->hostkeys_data))
     return NULL;
@@ -716,10 +715,8 @@
          system->hostkeys_data +
          (key_number * GNUNET_TESTING_HOSTKEYFILESIZE),
          GNUNET_TESTING_HOSTKEYFILESIZE);
-  GNUNET_CRYPTO_ecc_key_get_public_for_signature (private_key, &public_key);
-  GNUNET_CRYPTO_hash (&public_key,
-                      sizeof (struct GNUNET_CRYPTO_EccPublicSignKey),
-                      &(id->hashPubKey));
+  GNUNET_CRYPTO_ecc_key_get_public_for_signature (private_key, 
+                                                  &id->public_key);
   return private_key;
 }
 

Modified: gnunet/src/util/Makefile.am
===================================================================
--- gnunet/src/util/Makefile.am 2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/Makefile.am 2013-09-30 19:24:12 UTC (rev 29723)
@@ -416,7 +416,7 @@
 test_peer_SOURCES = \
  test_peer.c
 test_peer_LDADD = \
-$(top_builddir)/src/util/libgnunetutil.la
+$(top_builddir)/src/util/libgnunetutil.la -lgcrypt
 
 test_plugin_SOURCES = \
  test_plugin.c

Modified: gnunet/src/util/common_allocation.c
===================================================================
--- gnunet/src/util/common_allocation.c 2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/common_allocation.c 2013-09-30 19:24:12 UTC (rev 29723)
@@ -24,7 +24,7 @@
  * @author Christian Grothoff
  */
 #include "platform.h"
-#include "gnunet_common.h"
+#include "gnunet_util_lib.h"
 #if HAVE_MALLOC_H
 #include <malloc.h>
 #endif

Modified: gnunet/src/util/common_endian.c
===================================================================
--- gnunet/src/util/common_endian.c     2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/common_endian.c     2013-09-30 19:24:12 UTC (rev 29723)
@@ -25,7 +25,7 @@
  */
 
 #include "platform.h"
-#include "gnunet_common.h"
+#include "gnunet_util_lib.h"
 
 #define LOG(kind,...) GNUNET_log_from (kind, "util",__VA_ARGS__)
 

Modified: gnunet/src/util/common_logging.c
===================================================================
--- gnunet/src/util/common_logging.c    2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/common_logging.c    2013-09-30 19:24:12 UTC (rev 29723)
@@ -25,7 +25,6 @@
  * @author Christian Grothoff
  */
 #include "platform.h"
-#include "gnunet_common.h"
 #include "gnunet_util_lib.h"
 #include <regex.h>
 
@@ -1082,16 +1081,19 @@
  *
  * @param pid the peer identity
  * @return string form of the pid; will be overwritten by next
- *         call to GNUNET_i2s.
+ *         call to #GNUNET_i2s.
  */
 const char *
 GNUNET_i2s (const struct GNUNET_PeerIdentity *pid)
 {
-  static struct GNUNET_CRYPTO_HashAsciiEncoded ret;
+  static char buf[256];
+  char *ret;
 
-  GNUNET_CRYPTO_hash_to_enc (&pid->hashPubKey, &ret);
-  ret.encoding[4] = '\0';
-  return (const char *) ret.encoding;
+  ret = GNUNET_CRYPTO_ecc_public_sign_key_to_string (&pid->public_key);
+  strcpy (buf, ret);
+  GNUNET_free (ret);
+  buf[4] = '\0';
+  return buf;
 }
 
 
@@ -1102,15 +1104,18 @@
  *
  * @param pid the peer identity
  * @return string form of the pid; will be overwritten by next
- *         call to GNUNET_i2s.
+ *         call to #GNUNET_i2s_full.
  */
 const char *
 GNUNET_i2s_full (const struct GNUNET_PeerIdentity *pid)
 {
-  static struct GNUNET_CRYPTO_HashAsciiEncoded ret;
+  static char buf[256];
+  char *ret;
 
-  GNUNET_CRYPTO_hash_to_enc (&pid->hashPubKey, &ret);
-  return (const char *) ret.encoding;
+  ret = GNUNET_CRYPTO_ecc_public_sign_key_to_string (&pid->public_key);
+  strcpy (buf, ret);
+  GNUNET_free (ret);
+  return buf;
 }
 
 

Modified: gnunet/src/util/configuration.c
===================================================================
--- gnunet/src/util/configuration.c     2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/configuration.c     2013-09-30 19:24:12 UTC (rev 29723)
@@ -25,10 +25,7 @@
  */
 
 #include "platform.h"
-#include "gnunet_common.h"
 #include "gnunet_util_lib.h"
-#include "gnunet_crypto_lib.h"
-#include "gnunet_strings_lib.h"
 
 #define LOG(kind,...) GNUNET_log_from (kind, "util", __VA_ARGS__)
 

Modified: gnunet/src/util/connection.c
===================================================================
--- gnunet/src/util/connection.c        2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/connection.c        2013-09-30 19:24:12 UTC (rev 29723)
@@ -30,9 +30,7 @@
  * These rules should apply in general, but for this
  * module they are VERY, VERY important.
  */
-
 #include "platform.h"
-#include "gnunet_common.h"
 #include "gnunet_util_lib.h"
 #include "gnunet_resolver_service.h"
 

Modified: gnunet/src/util/container_bloomfilter.c
===================================================================
--- gnunet/src/util/container_bloomfilter.c     2013-09-30 19:07:10 UTC (rev 
29722)
+++ gnunet/src/util/container_bloomfilter.c     2013-09-30 19:24:12 UTC (rev 
29723)
@@ -40,9 +40,7 @@
  */
 
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_container_lib.h"
-#include "gnunet_disk_lib.h"
+#include "gnunet_util_lib.h"
 
 #define LOG(kind,...) GNUNET_log_from (kind, "util", __VA_ARGS__)
 

Modified: gnunet/src/util/container_meta_data.c
===================================================================
--- gnunet/src/util/container_meta_data.c       2013-09-30 19:07:10 UTC (rev 
29722)
+++ gnunet/src/util/container_meta_data.c       2013-09-30 19:24:12 UTC (rev 
29723)
@@ -25,10 +25,7 @@
  */
 
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_container_lib.h"
-#include "gnunet_strings_lib.h"
-#include "gnunet_time_lib.h"
+#include "gnunet_util_lib.h"
 #include <extractor.h>
 #include <zlib.h>
 

Modified: gnunet/src/util/container_multihashmap.c
===================================================================
--- gnunet/src/util/container_multihashmap.c    2013-09-30 19:07:10 UTC (rev 
29722)
+++ gnunet/src/util/container_multihashmap.c    2013-09-30 19:24:12 UTC (rev 
29723)
@@ -24,9 +24,7 @@
  */
 
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_container_lib.h"
-#include "gnunet_crypto_lib.h"
+#include "gnunet_util_lib.h"
 
 #define LOG(kind,...) GNUNET_log_from (kind, "util", __VA_ARGS__)
 

Modified: gnunet/src/util/container_multihashmap32.c
===================================================================
--- gnunet/src/util/container_multihashmap32.c  2013-09-30 19:07:10 UTC (rev 
29722)
+++ gnunet/src/util/container_multihashmap32.c  2013-09-30 19:24:12 UTC (rev 
29723)
@@ -26,9 +26,7 @@
  */
 
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_container_lib.h"
-#include "gnunet_crypto_lib.h"
+#include "gnunet_util_lib.h"
 
 #define LOG(kind,...) GNUNET_log_from (kind, "util", __VA_ARGS__)
 

Modified: gnunet/src/util/container_multipeermap.c
===================================================================
--- gnunet/src/util/container_multipeermap.c    2013-09-30 19:07:10 UTC (rev 
29722)
+++ gnunet/src/util/container_multipeermap.c    2013-09-30 19:24:12 UTC (rev 
29723)
@@ -24,9 +24,7 @@
  */
 
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_container_lib.h"
-#include "gnunet_crypto_lib.h"
+#include "gnunet_util_lib.h"
 
 #define LOG(kind,...) GNUNET_log_from (kind, "util", __VA_ARGS__)
 

Modified: gnunet/src/util/crypto_crc.c
===================================================================
--- gnunet/src/util/crypto_crc.c        2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/crypto_crc.c        2013-09-30 19:24:12 UTC (rev 29723)
@@ -28,8 +28,7 @@
  * @author Christian Grothoff
  */
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_crypto_lib.h"
+#include "gnunet_util_lib.h"
 
 #define LOG(kind,...) GNUNET_log_from (kind, "util", __VA_ARGS__)
 

Modified: gnunet/src/util/crypto_ecc.c
===================================================================
--- gnunet/src/util/crypto_ecc.c        2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/crypto_ecc.c        2013-09-30 19:24:12 UTC (rev 29723)
@@ -25,7 +25,6 @@
  */
 #include "platform.h"
 #include <gcrypt.h>
-#include "gnunet_common.h"
 #include "gnunet_util_lib.h"
 
 #define EXTRA_CHECKS ALLOW_EXTRA_CHECKS 
@@ -746,7 +745,6 @@
                                  struct GNUNET_PeerIdentity *dst)
 {
   struct GNUNET_CRYPTO_EccPrivateKey *priv;
-  struct GNUNET_CRYPTO_EccPublicSignKey pub;
 
   if (NULL == (priv = GNUNET_CRYPTO_ecc_key_create_from_configuration (cfg)))
   {
@@ -754,9 +752,8 @@
                 _("Could not load peer's private key\n"));
     return GNUNET_SYSERR;
   }
-  GNUNET_CRYPTO_ecc_key_get_public_for_signature (priv, &pub);
+  GNUNET_CRYPTO_ecc_key_get_public_for_signature (priv, &dst->public_key);
   GNUNET_free (priv);
-  GNUNET_CRYPTO_hash (&pub, sizeof (pub), &dst->hashPubKey);
   return GNUNET_OK;
 }
 

Modified: gnunet/src/util/crypto_hash.c
===================================================================
--- gnunet/src/util/crypto_hash.c       2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/crypto_hash.c       2013-09-30 19:24:12 UTC (rev 29723)
@@ -26,10 +26,7 @@
  */
 
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_crypto_lib.h"
-#include "gnunet_disk_lib.h"
-#include "gnunet_strings_lib.h"
+#include "gnunet_util_lib.h"
 #include <gcrypt.h>
 
 #define LOG(kind,...) GNUNET_log_from (kind, "util", __VA_ARGS__)

Modified: gnunet/src/util/crypto_random.c
===================================================================
--- gnunet/src/util/crypto_random.c     2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/crypto_random.c     2013-09-30 19:24:12 UTC (rev 29723)
@@ -25,9 +25,7 @@
  * @author Christian Grothoff
  */
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_crypto_lib.h"
-#include "gnunet_os_lib.h"
+#include "gnunet_util_lib.h"
 #include <gcrypt.h>
 
 #define LOG(kind,...) GNUNET_log_from (kind, "util", __VA_ARGS__)

Modified: gnunet/src/util/crypto_symmetric.c
===================================================================
--- gnunet/src/util/crypto_symmetric.c  2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/crypto_symmetric.c  2013-09-30 19:24:12 UTC (rev 29723)
@@ -26,8 +26,7 @@
  */
 
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_crypto_lib.h"
+#include "gnunet_util_lib.h"
 #include <gcrypt.h>
 
 #define LOG(kind,...) GNUNET_log_from (kind, "util", __VA_ARGS__)

Modified: gnunet/src/util/disk.c
===================================================================
--- gnunet/src/util/disk.c      2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/disk.c      2013-09-30 19:24:12 UTC (rev 29723)
@@ -26,12 +26,8 @@
  */
 
 #include "platform.h"
-#include "gnunet_common.h"
 #include "gnunet_directories.h"
-#include "gnunet_disk_lib.h"
-#include "gnunet_scheduler_lib.h"
-#include "gnunet_strings_lib.h"
-#include "gnunet_crypto_lib.h"
+#include "gnunet_util_lib.h"
 #include "disk.h"
 
 #define LOG(kind,...) GNUNET_log_from (kind, "util", __VA_ARGS__)

Modified: gnunet/src/util/disk.h
===================================================================
--- gnunet/src/util/disk.h      2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/disk.h      2013-09-30 19:24:12 UTC (rev 29723)
@@ -26,7 +26,7 @@
 #ifndef GNUNET_DISK_H_
 #define GNUNET_DISK_H_
 
-#include "gnunet_disk_lib.h"
+#include "gnunet_util_lib.h"
 
 /**
  * Retrieve OS file handle
@@ -34,8 +34,8 @@
  * @internal
  * @param fh GNUnet file descriptor
  * @param dst destination buffer
- * @param dst_len length of dst
- * @return GNUNET_OK on success, GNUNET_SYSERR otherwise
+ * @param dst_len length of @a dst
+ * @return #GNUNET_OK on success, #GNUNET_SYSERR otherwise
  */
 int
 GNUNET_DISK_internal_file_handle_ (const struct GNUNET_DISK_FileHandle *fh,

Modified: gnunet/src/util/getopt.c
===================================================================
--- gnunet/src/util/getopt.c    2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/getopt.c    2013-09-30 19:24:12 UTC (rev 29723)
@@ -37,10 +37,8 @@
  * replace main GNU getopt parser with one that
  * actually fits our API.
  */
-
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_getopt_lib.h"
+#include "gnunet_util_lib.h"
 
 #ifdef VMS
 #include <unixlib.h>

Modified: gnunet/src/util/getopt_helpers.c
===================================================================
--- gnunet/src/util/getopt_helpers.c    2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/getopt_helpers.c    2013-09-30 19:24:12 UTC (rev 29723)
@@ -23,9 +23,7 @@
  * @brief implements command line that sets option
  * @author Christian Grothoff
  */
-
 #include "platform.h"
-#include "gnunet_common.h"
 #include "gnunet_util_lib.h"
 
 #define LOG(kind,...) GNUNET_log_from (kind, "util", __VA_ARGS__)

Modified: gnunet/src/util/gnunet-ecc.c
===================================================================
--- gnunet/src/util/gnunet-ecc.c        2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/gnunet-ecc.c        2013-09-30 19:24:12 UTC (rev 29723)
@@ -111,7 +111,6 @@
 {
   struct GNUNET_CRYPTO_EccPrivateKey *pk;
   struct GNUNET_CRYPTO_EccPublicSignKey pub;
-  struct GNUNET_PeerIdentity pid;
 
   if (NULL == args[0])
   {
@@ -137,12 +136,14 @@
   }
   if (print_peer_identity)
   {
-    struct GNUNET_CRYPTO_HashAsciiEncoded enc;
+    char *str;
 
     GNUNET_CRYPTO_ecc_key_get_public_for_signature (pk, &pub);
-    GNUNET_CRYPTO_hash (&pub, sizeof (pub), &pid.hashPubKey);
-    GNUNET_CRYPTO_hash_to_enc (&pid.hashPubKey, &enc);
-    fprintf (stdout, "%s\n", enc.encoding);
+    str = GNUNET_CRYPTO_ecc_public_sign_key_to_string (&pub);
+    fprintf (stdout, 
+             "%s\n",
+             str);
+    GNUNET_free (str);
   }
   GNUNET_free (pk);
 }

Modified: gnunet/src/util/mq.c
===================================================================
--- gnunet/src/util/mq.c        2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/mq.c        2013-09-30 19:24:12 UTC (rev 29723)
@@ -23,9 +23,7 @@
  * @file util/mq.c
  * @brief general purpose request queue
  */
-
 #include "platform.h"
-#include "gnunet_common.h"
 #include "gnunet_util_lib.h"
 
 #define LOG(kind,...) GNUNET_log_from (kind, "mq",__VA_ARGS__)

Modified: gnunet/src/util/network.c
===================================================================
--- gnunet/src/util/network.c   2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/network.c   2013-09-30 19:24:12 UTC (rev 29723)
@@ -25,8 +25,8 @@
  * @author Christian Grothoff
  */
 #include "platform.h"
+#include "gnunet_util_lib.h"
 #include "disk.h"
-#include "gnunet_util_lib.h"
 
 #define LOG(kind,...) GNUNET_log_from (kind, "util", __VA_ARGS__)
 #define LOG_STRERROR_FILE(kind,syscall,filename) GNUNET_log_from_strerror_file 
(kind, "util", syscall, filename)

Modified: gnunet/src/util/os_installation.c
===================================================================
--- gnunet/src/util/os_installation.c   2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/os_installation.c   2013-09-30 19:24:12 UTC (rev 29723)
@@ -30,11 +30,7 @@
 #include <unistr.h> /* for u16_to_u8 */
 
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_configuration_lib.h"
-#include "gnunet_disk_lib.h"
-#include "gnunet_os_lib.h"
-#include "gnunet_strings_lib.h"
+#include "gnunet_util_lib.h"
 #if DARWIN
 #include <mach-o/ldsyms.h>
 #include <mach-o/dyld.h>

Modified: gnunet/src/util/os_network.c
===================================================================
--- gnunet/src/util/os_network.c        2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/os_network.c        2013-09-30 19:24:12 UTC (rev 29723)
@@ -27,10 +27,8 @@
  * @author Jake Dust
  * @author LRN
  */
-
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_os_lib.h"
+#include "gnunet_util_lib.h"
 
 
 #define LOG(kind,...) GNUNET_log_from (kind, "util", __VA_ARGS__)

Modified: gnunet/src/util/os_priority.c
===================================================================
--- gnunet/src/util/os_priority.c       2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/os_priority.c       2013-09-30 19:24:12 UTC (rev 29723)
@@ -25,11 +25,7 @@
  */
 
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_os_lib.h"
-#include "gnunet_scheduler_lib.h"
-#include "gnunet_strings_lib.h"
-#include "gnunet_crypto_lib.h"
+#include "gnunet_util_lib.h"
 #include "disk.h"
 #include <unistr.h>
 

Modified: gnunet/src/util/peer.c
===================================================================
--- gnunet/src/util/peer.c      2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/peer.c      2013-09-30 19:24:12 UTC (rev 29723)
@@ -23,7 +23,6 @@
  * @brief peer-ID table that assigns integer IDs to peer-IDs to save memory
  * @author Christian Grothoff
  */
-
 #include "platform.h"
 #include "gnunet_peer_lib.h"
 
@@ -56,11 +55,11 @@
 static struct PeerEntry **table;
 
 /**
- * Hashmap of PeerIdentities to "struct PeerEntry"
+ * Peermap of PeerIdentities to "struct PeerEntry"
  * (for fast lookup).  NULL until the library
  * is actually being used.
  */
-static struct GNUNET_CONTAINER_MultiHashMap *map;
+static struct GNUNET_CONTAINER_MultiPeerMap *map;
 
 /**
  * Size of the "table".
@@ -89,7 +88,7 @@
     return 0;
   if (NULL == map)
     return 0;
-  e = GNUNET_CONTAINER_multihashmap_get (map, &pid->hashPubKey);
+  e = GNUNET_CONTAINER_multipeermap_get (map, pid);
   if (NULL == e)
     return 0;
   GNUNET_assert (e->rc > 0);
@@ -114,8 +113,8 @@
   if (NULL == pid)
     return 0;
   if (NULL == map)
-    map = GNUNET_CONTAINER_multihashmap_create (32, GNUNET_YES);
-  e = GNUNET_CONTAINER_multihashmap_get (map, &pid->hashPubKey);
+    map = GNUNET_CONTAINER_multipeermap_create (32, GNUNET_YES);
+  e = GNUNET_CONTAINER_multipeermap_get (map, pid);
   if (NULL != e)
   {
     GNUNET_assert (e->rc > 0);
@@ -145,8 +144,8 @@
   table[ret]->rc = 1;
   table[ret]->pid = ret;
   GNUNET_break (GNUNET_OK ==
-                GNUNET_CONTAINER_multihashmap_put (map, 
-                                                  &table[ret]->id.hashPubKey,
+                GNUNET_CONTAINER_multipeermap_put (map, 
+                                                  &table[ret]->id,
                                                    table[ret],
                                                    
GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY));
   return ret;
@@ -178,8 +177,8 @@
     if (0 == table[id]->rc)
     {
       GNUNET_break (GNUNET_OK ==
-                    GNUNET_CONTAINER_multihashmap_remove (map,
-                                                          
&table[id]->id.hashPubKey,
+                    GNUNET_CONTAINER_multipeermap_remove (map,
+                                                          &table[id]->id,
                                                           table[id]));
       table[id]->pid = free_list_start;
       free_list_start = id;
@@ -206,8 +205,8 @@
   if (0 == table[id]->rc)
   {
     GNUNET_break (GNUNET_OK ==
-                  GNUNET_CONTAINER_multihashmap_remove (map,
-                                                        
&table[id]->id.hashPubKey,
+                  GNUNET_CONTAINER_multipeermap_remove (map,
+                                                        &table[id]->id,
                                                         table[id]));
     table[id]->pid = free_list_start;
     free_list_start = id;

Modified: gnunet/src/util/plugin.c
===================================================================
--- gnunet/src/util/plugin.c    2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/plugin.c    2013-09-30 19:24:12 UTC (rev 29723)
@@ -26,9 +26,7 @@
 
 #include "platform.h"
 #include <ltdl.h>
-#include "gnunet_common.h"
-#include "gnunet_os_lib.h"
-#include "gnunet_plugin_lib.h"
+#include "gnunet_util_lib.h"
 
 #define LOG(kind,...) GNUNET_log_from (kind, "util", __VA_ARGS__)
 

Modified: gnunet/src/util/program.c
===================================================================
--- gnunet/src/util/program.c   2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/program.c   2013-09-30 19:24:12 UTC (rev 29723)
@@ -25,15 +25,9 @@
  */
 
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_configuration_lib.h"
-#include "gnunet_crypto_lib.h"
+#include "gnunet_util_lib.h"
+#include "gnunet_resolver_service.h"
 #include "gnunet_directories.h"
-#include "gnunet_getopt_lib.h"
-#include "gnunet_os_lib.h"
-#include "gnunet_program_lib.h"
-#include "gnunet_resolver_service.h"
-#include "gnunet_scheduler_lib.h"
 #include <gcrypt.h>
 
 #define LOG(kind,...) GNUNET_log_from (kind, "util", __VA_ARGS__)

Modified: gnunet/src/util/scheduler.c
===================================================================
--- gnunet/src/util/scheduler.c 2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/scheduler.c 2013-09-30 19:24:12 UTC (rev 29723)
@@ -24,11 +24,7 @@
  * @author Christian Grothoff
  */
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_os_lib.h"
-#include "gnunet_scheduler_lib.h"
-#include "gnunet_signal_lib.h"
-#include "gnunet_time_lib.h"
+#include "gnunet_util_lib.h"
 #include "disk.h"
 
 #define LOG(kind,...) GNUNET_log_from (kind, "util-scheduler", __VA_ARGS__)

Modified: gnunet/src/util/server.c
===================================================================
--- gnunet/src/util/server.c    2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/server.c    2013-09-30 19:24:12 UTC (rev 29723)
@@ -25,7 +25,6 @@
  */
 
 #include "platform.h"
-#include "gnunet_common.h"
 #include "gnunet_util_lib.h"
 #include "gnunet_protocols.h"
 

Modified: gnunet/src/util/server_mst.c
===================================================================
--- gnunet/src/util/server_mst.c        2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/server_mst.c        2013-09-30 19:24:12 UTC (rev 29723)
@@ -25,11 +25,7 @@
  */
 
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_connection_lib.h"
-#include "gnunet_scheduler_lib.h"
-#include "gnunet_server_lib.h"
-#include "gnunet_time_lib.h"
+#include "gnunet_util_lib.h"
 
 
 #if HAVE_UNALIGNED_64_ACCESS

Modified: gnunet/src/util/server_nc.c
===================================================================
--- gnunet/src/util/server_nc.c 2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/server_nc.c 2013-09-30 19:24:12 UTC (rev 29723)
@@ -26,12 +26,7 @@
  */
 
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_connection_lib.h"
-#include "gnunet_container_lib.h"
-#include "gnunet_scheduler_lib.h"
-#include "gnunet_server_lib.h"
-#include "gnunet_time_lib.h"
+#include "gnunet_util_lib.h"
 
 #define LOG(kind,...) GNUNET_log_from (kind, "util-server-nc", __VA_ARGS__)
 

Modified: gnunet/src/util/server_tc.c
===================================================================
--- gnunet/src/util/server_tc.c 2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/server_tc.c 2013-09-30 19:24:12 UTC (rev 29723)
@@ -26,11 +26,7 @@
  */
 
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_connection_lib.h"
-#include "gnunet_scheduler_lib.h"
-#include "gnunet_server_lib.h"
-#include "gnunet_time_lib.h"
+#include "gnunet_util_lib.h"
 
 
 #define LOG(kind,...) GNUNET_log_from (kind, "util", __VA_ARGS__)

Modified: gnunet/src/util/service.c
===================================================================
--- gnunet/src/util/service.c   2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/service.c   2013-09-30 19:24:12 UTC (rev 29723)
@@ -24,17 +24,10 @@
  * @author Christian Grothoff
  */
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_configuration_lib.h"
-#include "gnunet_crypto_lib.h"
+#include "gnunet_util_lib.h"
+#include "gnunet_protocols.h"
 #include "gnunet_directories.h"
-#include "gnunet_disk_lib.h"
-#include "gnunet_getopt_lib.h"
-#include "gnunet_os_lib.h"
-#include "gnunet_protocols.h"
 #include "gnunet_resolver_service.h"
-#include "gnunet_server_lib.h"
-#include "gnunet_service_lib.h"
 
 #if HAVE_MALLINFO
 #include <malloc.h>

Modified: gnunet/src/util/signal.c
===================================================================
--- gnunet/src/util/signal.c    2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/signal.c    2013-09-30 19:24:12 UTC (rev 29723)
@@ -25,8 +25,7 @@
  */
 
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_signal_lib.h"
+#include "gnunet_util_lib.h"
 
 #define LOG(kind,...) GNUNET_log_from (kind, "util", __VA_ARGS__)
 

Modified: gnunet/src/util/strings.c
===================================================================
--- gnunet/src/util/strings.c   2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/strings.c   2013-09-30 19:24:12 UTC (rev 29723)
@@ -29,8 +29,7 @@
 #if HAVE_ICONV
 #include <iconv.h>
 #endif
-#include "gnunet_common.h"
-#include "gnunet_strings_lib.h"
+#include "gnunet_util_lib.h"
 #include <unicase.h>
 #include <unistr.h>
 #include <uniconv.h>

Modified: gnunet/src/util/test_client.c
===================================================================
--- gnunet/src/util/test_client.c       2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/test_client.c       2013-09-30 19:24:12 UTC (rev 29723)
@@ -22,12 +22,7 @@
  * @brief tests for client.c
  */
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_client_lib.h"
-#include "gnunet_configuration_lib.h"
-#include "gnunet_scheduler_lib.h"
-#include "gnunet_server_lib.h"
-#include "gnunet_time_lib.h"
+#include "gnunet_util_lib.h"
 
 
 #define PORT 14325

Modified: gnunet/src/util/test_common_allocation.c
===================================================================
--- gnunet/src/util/test_common_allocation.c    2013-09-30 19:07:10 UTC (rev 
29722)
+++ gnunet/src/util/test_common_allocation.c    2013-09-30 19:24:12 UTC (rev 
29723)
@@ -23,7 +23,7 @@
  * @brief testcase for common_allocation.c
  */
 #include "platform.h"
-#include "gnunet_common.h"
+#include "gnunet_util_lib.h"
 
 static int
 check ()

Modified: gnunet/src/util/test_common_endian.c
===================================================================
--- gnunet/src/util/test_common_endian.c        2013-09-30 19:07:10 UTC (rev 
29722)
+++ gnunet/src/util/test_common_endian.c        2013-09-30 19:24:12 UTC (rev 
29723)
@@ -22,7 +22,7 @@
  * @brief testcase for common_endian.c
  */
 #include "platform.h"
-#include "gnunet_common.h"
+#include "gnunet_util_lib.h"
 
 #define CHECK(n) if (n != GNUNET_htonll(GNUNET_ntohll(n))) return 1;
 

Modified: gnunet/src/util/test_common_logging.c
===================================================================
--- gnunet/src/util/test_common_logging.c       2013-09-30 19:07:10 UTC (rev 
29722)
+++ gnunet/src/util/test_common_logging.c       2013-09-30 19:24:12 UTC (rev 
29723)
@@ -24,7 +24,7 @@
  * @author Christian Grothoff
  */
 #include "platform.h"
-#include "gnunet_common.h"
+#include "gnunet_util_lib.h"
 
 static void
 my_log (void *ctx, enum GNUNET_ErrorType kind, const char *component,

Modified: gnunet/src/util/test_common_logging_dummy.c
===================================================================
--- gnunet/src/util/test_common_logging_dummy.c 2013-09-30 19:07:10 UTC (rev 
29722)
+++ gnunet/src/util/test_common_logging_dummy.c 2013-09-30 19:24:12 UTC (rev 
29723)
@@ -28,9 +28,7 @@
 #undef GNUNET_EXTRA_LOGGING
 #define GNUNET_EXTRA_LOGGING GNUNET_YES
 
-#include "gnunet_common.h"
-#include "gnunet_time_lib.h"
-#include "gnunet_network_lib.h"
+#include "gnunet_util_lib.h"
 
 /**
  * Artificial delay attached to each log call that is not skipped out.

Modified: gnunet/src/util/test_common_logging_runtime_loglevels.c
===================================================================
--- gnunet/src/util/test_common_logging_runtime_loglevels.c     2013-09-30 
19:07:10 UTC (rev 29722)
+++ gnunet/src/util/test_common_logging_runtime_loglevels.c     2013-09-30 
19:24:12 UTC (rev 29723)
@@ -24,11 +24,7 @@
  * @author LRN
  */
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_scheduler_lib.h"
-#include "gnunet_network_lib.h"
-#include "gnunet_disk_lib.h"
-#include "gnunet_os_lib.h"
+#include "gnunet_util_lib.h"
 
 #define VERBOSE GNUNET_NO
 

Modified: gnunet/src/util/test_configuration.c
===================================================================
--- gnunet/src/util/test_configuration.c        2013-09-30 19:07:10 UTC (rev 
29722)
+++ gnunet/src/util/test_configuration.c        2013-09-30 19:24:12 UTC (rev 
29723)
@@ -24,9 +24,7 @@
  */
 
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_configuration_lib.h"
-#include "gnunet_disk_lib.h"
+#include "gnunet_util_lib.h"
 
 
 /* Test Configuration Diffs Options */

Modified: gnunet/src/util/test_connection.c
===================================================================
--- gnunet/src/util/test_connection.c   2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/test_connection.c   2013-09-30 19:24:12 UTC (rev 29723)
@@ -22,10 +22,7 @@
  * @brief tests for connection.c
  */
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_connection_lib.h"
-#include "gnunet_scheduler_lib.h"
-#include "gnunet_time_lib.h"
+#include "gnunet_util_lib.h"
 
 #define PORT 12435
 

Modified: gnunet/src/util/test_connection_addressing.c
===================================================================
--- gnunet/src/util/test_connection_addressing.c        2013-09-30 19:07:10 UTC 
(rev 29722)
+++ gnunet/src/util/test_connection_addressing.c        2013-09-30 19:24:12 UTC 
(rev 29723)
@@ -22,10 +22,7 @@
  * @brief tests for connection.c
  */
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_connection_lib.h"
-#include "gnunet_scheduler_lib.h"
-#include "gnunet_time_lib.h"
+#include "gnunet_util_lib.h"
 
 
 #define PORT 12435

Modified: gnunet/src/util/test_connection_receive_cancel.c
===================================================================
--- gnunet/src/util/test_connection_receive_cancel.c    2013-09-30 19:07:10 UTC 
(rev 29722)
+++ gnunet/src/util/test_connection_receive_cancel.c    2013-09-30 19:24:12 UTC 
(rev 29723)
@@ -22,10 +22,7 @@
  * @brief tests for connection.c
  */
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_connection_lib.h"
-#include "gnunet_scheduler_lib.h"
-#include "gnunet_time_lib.h"
+#include "gnunet_util_lib.h"
 
 #define PORT 12435
 

Modified: gnunet/src/util/test_connection_timeout.c
===================================================================
--- gnunet/src/util/test_connection_timeout.c   2013-09-30 19:07:10 UTC (rev 
29722)
+++ gnunet/src/util/test_connection_timeout.c   2013-09-30 19:24:12 UTC (rev 
29723)
@@ -22,10 +22,7 @@
  * @brief tests for connection.c
  */
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_connection_lib.h"
-#include "gnunet_scheduler_lib.h"
-#include "gnunet_time_lib.h"
+#include "gnunet_util_lib.h"
 
 #define PORT 12435
 

Modified: gnunet/src/util/test_connection_timeout_no_connect.c
===================================================================
--- gnunet/src/util/test_connection_timeout_no_connect.c        2013-09-30 
19:07:10 UTC (rev 29722)
+++ gnunet/src/util/test_connection_timeout_no_connect.c        2013-09-30 
19:24:12 UTC (rev 29723)
@@ -22,10 +22,7 @@
  * @brief tests for connection.c, doing timeout which connect failure
  */
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_connection_lib.h"
-#include "gnunet_scheduler_lib.h"
-#include "gnunet_time_lib.h"
+#include "gnunet_util_lib.h"
 
 #define PORT 13425
 

Modified: gnunet/src/util/test_connection_transmit_cancel.c
===================================================================
--- gnunet/src/util/test_connection_transmit_cancel.c   2013-09-30 19:07:10 UTC 
(rev 29722)
+++ gnunet/src/util/test_connection_transmit_cancel.c   2013-09-30 19:24:12 UTC 
(rev 29723)
@@ -22,10 +22,7 @@
  * @brief tests for connection.c
  */
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_connection_lib.h"
-#include "gnunet_scheduler_lib.h"
-#include "gnunet_time_lib.h"
+#include "gnunet_util_lib.h"
 
 #define PORT 12435
 

Modified: gnunet/src/util/test_container_bloomfilter.c
===================================================================
--- gnunet/src/util/test_container_bloomfilter.c        2013-09-30 19:07:10 UTC 
(rev 29722)
+++ gnunet/src/util/test_container_bloomfilter.c        2013-09-30 19:24:12 UTC 
(rev 29723)
@@ -25,8 +25,7 @@
  */
 
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_container_lib.h"
+#include "gnunet_util_lib.h"
 
 #define K 4
 #define SIZE 65536

Modified: gnunet/src/util/test_container_heap.c
===================================================================
--- gnunet/src/util/test_container_heap.c       2013-09-30 19:07:10 UTC (rev 
29722)
+++ gnunet/src/util/test_container_heap.c       2013-09-30 19:24:12 UTC (rev 
29723)
@@ -25,8 +25,7 @@
  */
 
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_container_lib.h"
+#include "gnunet_util_lib.h"
 
 static int
 iterator_callback (void *cls, struct GNUNET_CONTAINER_HeapNode *node,

Modified: gnunet/src/util/test_container_meta_data.c
===================================================================
--- gnunet/src/util/test_container_meta_data.c  2013-09-30 19:07:10 UTC (rev 
29722)
+++ gnunet/src/util/test_container_meta_data.c  2013-09-30 19:24:12 UTC (rev 
29723)
@@ -25,8 +25,7 @@
  */
 
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_container_lib.h"
+#include "gnunet_util_lib.h"
 
 #define ABORT(m) { fprintf(stderr, "Error at %s:%d\n", __FILE__, __LINE__); if 
(m != NULL) GNUNET_CONTAINER_meta_data_destroy(m); return 1; }
 

Modified: gnunet/src/util/test_container_multihashmap.c
===================================================================
--- gnunet/src/util/test_container_multihashmap.c       2013-09-30 19:07:10 UTC 
(rev 29722)
+++ gnunet/src/util/test_container_multihashmap.c       2013-09-30 19:24:12 UTC 
(rev 29723)
@@ -25,8 +25,7 @@
  */
 
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_container_lib.h"
+#include "gnunet_util_lib.h"
 
 #define ABORT() { fprintf(stderr, "Error at %s:%d\n", __FILE__, __LINE__); if 
(m != NULL) GNUNET_CONTAINER_multihashmap_destroy(m); return 1; }
 #define CHECK(c) { if (! (c)) ABORT(); }

Modified: gnunet/src/util/test_container_multihashmap32.c
===================================================================
--- gnunet/src/util/test_container_multihashmap32.c     2013-09-30 19:07:10 UTC 
(rev 29722)
+++ gnunet/src/util/test_container_multihashmap32.c     2013-09-30 19:24:12 UTC 
(rev 29723)
@@ -26,8 +26,7 @@
  */
 
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_container_lib.h"
+#include "gnunet_util_lib.h"
 
 #define ABORT() { fprintf(stderr, "Error at %s:%d\n", __FILE__, __LINE__); if 
(m != NULL) GNUNET_CONTAINER_multihashmap32_destroy(m); return 1; }
 #define CHECK(c) { if (! (c)) ABORT(); }

Modified: gnunet/src/util/test_container_multipeermap.c
===================================================================
--- gnunet/src/util/test_container_multipeermap.c       2013-09-30 19:07:10 UTC 
(rev 29722)
+++ gnunet/src/util/test_container_multipeermap.c       2013-09-30 19:24:12 UTC 
(rev 29723)
@@ -25,8 +25,7 @@
  */
 
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_container_lib.h"
+#include "gnunet_util_lib.h"
 
 #define ABORT() { fprintf(stderr, "Error at %s:%d\n", __FILE__, __LINE__); if 
(NULL != m) GNUNET_CONTAINER_multipeermap_destroy(m); return 1; }
 #define CHECK(c) { if (! (c)) ABORT(); }

Modified: gnunet/src/util/test_container_slist.c
===================================================================
--- gnunet/src/util/test_container_slist.c      2013-09-30 19:07:10 UTC (rev 
29722)
+++ gnunet/src/util/test_container_slist.c      2013-09-30 19:24:12 UTC (rev 
29723)
@@ -25,8 +25,7 @@
  */
 
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_container_lib.h"
+#include "gnunet_util_lib.h"
 
 int
 main (int argc, char *argv[])

Modified: gnunet/src/util/test_crypto_crc.c
===================================================================
--- gnunet/src/util/test_crypto_crc.c   2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/test_crypto_crc.c   2013-09-30 19:24:12 UTC (rev 29723)
@@ -27,8 +27,7 @@
  * @brief testcase for crypto_crc.c
  */
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_crypto_lib.h"
+#include "gnunet_util_lib.h"
 
 static int expected[] = {
   -1223996378, 929797997, -1048047323, 1791081351, -425765913, 2138425902,

Modified: gnunet/src/util/test_crypto_hash.c
===================================================================
--- gnunet/src/util/test_crypto_hash.c  2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/test_crypto_hash.c  2013-09-30 19:24:12 UTC (rev 29723)
@@ -24,9 +24,7 @@
  * @brief Test for crypto_hash.c
  */
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_crypto_lib.h"
-#include "gnunet_scheduler_lib.h"
+#include "gnunet_util_lib.h"
 
 static char block[65536];
 

Modified: gnunet/src/util/test_crypto_random.c
===================================================================
--- gnunet/src/util/test_crypto_random.c        2013-09-30 19:07:10 UTC (rev 
29722)
+++ gnunet/src/util/test_crypto_random.c        2013-09-30 19:24:12 UTC (rev 
29723)
@@ -24,8 +24,7 @@
  * @brief testcase for crypto_random.c
  */
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_crypto_lib.h"
+#include "gnunet_util_lib.h"
 
 static int
 test (enum GNUNET_CRYPTO_Quality mode)

Modified: gnunet/src/util/test_crypto_symmetric.c
===================================================================
--- gnunet/src/util/test_crypto_symmetric.c     2013-09-30 19:07:10 UTC (rev 
29722)
+++ gnunet/src/util/test_crypto_symmetric.c     2013-09-30 19:24:12 UTC (rev 
29723)
@@ -24,8 +24,7 @@
  * @brief test for AES ciphers
  */
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_crypto_lib.h"
+#include "gnunet_util_lib.h"
 
 #define TESTSTRING "Hello World!"
 #define INITVALUE "InitializationVectorValueinitializationvectorvalue"

Modified: gnunet/src/util/test_disk.c
===================================================================
--- gnunet/src/util/test_disk.c 2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/test_disk.c 2013-09-30 19:24:12 UTC (rev 29723)
@@ -24,9 +24,7 @@
  * @author Christian Grothoff
  */
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_disk_lib.h"
-#include "gnunet_scheduler_lib.h"
+#include "gnunet_util_lib.h"
 
 #define TESTSTRING "Hello World\0"
 

Modified: gnunet/src/util/test_getopt.c
===================================================================
--- gnunet/src/util/test_getopt.c       2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/test_getopt.c       2013-09-30 19:24:12 UTC (rev 29723)
@@ -22,9 +22,7 @@
  * @brief testcase for util/getopt.c
  */
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_configuration_lib.h"
-#include "gnunet_getopt_lib.h"
+#include "gnunet_util_lib.h"
 
 
 static int

Modified: gnunet/src/util/test_mq_client.c
===================================================================
--- gnunet/src/util/test_mq_client.c    2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/test_mq_client.c    2013-09-30 19:24:12 UTC (rev 29723)
@@ -23,7 +23,6 @@
  * @brief tests for mq with connection client
  */
 #include "platform.h"
-#include "gnunet_common.h"
 #include "gnunet_util_lib.h"
 
 #define PORT 23336

Modified: gnunet/src/util/test_os_network.c
===================================================================
--- gnunet/src/util/test_os_network.c   2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/test_os_network.c   2013-09-30 19:24:12 UTC (rev 29723)
@@ -22,9 +22,7 @@
  * @brief testcase for util/os_network.c
  */
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_configuration_lib.h"
-#include "gnunet_os_lib.h"
+#include "gnunet_util_lib.h"
 
 
 /**

Modified: gnunet/src/util/test_os_start_process.c
===================================================================
--- gnunet/src/util/test_os_start_process.c     2013-09-30 19:07:10 UTC (rev 
29722)
+++ gnunet/src/util/test_os_start_process.c     2013-09-30 19:24:12 UTC (rev 
29723)
@@ -26,11 +26,7 @@
  * correct data "HELLO" is read then all is well.
  */
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_getopt_lib.h"
-#include "gnunet_os_lib.h"
-#include "gnunet_program_lib.h"
-#include "gnunet_scheduler_lib.h"
+#include "gnunet_util_lib.h"
 #include "disk.h"
 
 

Modified: gnunet/src/util/test_peer.c
===================================================================
--- gnunet/src/util/test_peer.c 2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/test_peer.c 2013-09-30 19:24:12 UTC (rev 29723)
@@ -24,8 +24,8 @@
  */
 
 #include "platform.h"
-#include "gnunet_crypto_lib.h"
-#include "gnunet_peer_lib.h"
+#include "gnunet_util_lib.h"
+#include <gcrypt.h>
 
 #define NUMBER_OF_PEERS 10
 
@@ -42,8 +42,9 @@
 
   for (i = 0; i < NUMBER_OF_PEERS; i++)
   {
-    GNUNET_CRYPTO_hash_create_random (GNUNET_CRYPTO_QUALITY_WEAK,
-                                      &pidArr[i].hashPubKey);
+    gcry_randomize (&pidArr[i],
+                    sizeof (struct GNUNET_PeerIdentity), 
+                    GCRY_STRONG_RANDOM);
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                "Peer %d: %s\n", i, GNUNET_i2s (&pidArr[i]));
   }

Modified: gnunet/src/util/test_plugin.c
===================================================================
--- gnunet/src/util/test_plugin.c       2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/test_plugin.c       2013-09-30 19:24:12 UTC (rev 29723)
@@ -22,7 +22,7 @@
  * @brief testcase for plugin.c
  */
 #include "platform.h"
-#include "gnunet_plugin_lib.h"
+#include "gnunet_util_lib.h"
 
 
 static void

Modified: gnunet/src/util/test_program.c
===================================================================
--- gnunet/src/util/test_program.c      2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/test_program.c      2013-09-30 19:24:12 UTC (rev 29723)
@@ -22,10 +22,7 @@
  * @brief tests for program.c
  */
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_program_lib.h"
-#include "gnunet_scheduler_lib.h"
-#include "gnunet_time_lib.h"
+#include "gnunet_util_lib.h"
 
 static int setme1, setme2;
 

Modified: gnunet/src/util/test_scheduler.c
===================================================================
--- gnunet/src/util/test_scheduler.c    2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/test_scheduler.c    2013-09-30 19:24:12 UTC (rev 29723)
@@ -22,10 +22,7 @@
  * @brief tests for the scheduler
  */
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_scheduler_lib.h"
-#include "gnunet_time_lib.h"
-#include "gnunet_disk_lib.h"
+#include "gnunet_util_lib.h"
 
 
 struct GNUNET_DISK_PipeHandle *p;

Modified: gnunet/src/util/test_server.c
===================================================================
--- gnunet/src/util/test_server.c       2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/test_server.c       2013-09-30 19:24:12 UTC (rev 29723)
@@ -22,11 +22,7 @@
  * @brief tests for server.c
  */
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_client_lib.h"
-#include "gnunet_scheduler_lib.h"
-#include "gnunet_server_lib.h"
-#include "gnunet_time_lib.h"
+#include "gnunet_util_lib.h"
 
 #define PORT 12435
 

Modified: gnunet/src/util/test_server_disconnect.c
===================================================================
--- gnunet/src/util/test_server_disconnect.c    2013-09-30 19:07:10 UTC (rev 
29722)
+++ gnunet/src/util/test_server_disconnect.c    2013-09-30 19:24:12 UTC (rev 
29723)
@@ -22,11 +22,7 @@
  * @brief tests for server.c,  specifically GNUNET_SERVER_client_disconnect
  */
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_client_lib.h"
-#include "gnunet_scheduler_lib.h"
-#include "gnunet_server_lib.h"
-#include "gnunet_time_lib.h"
+#include "gnunet_util_lib.h"
 
 
 #define PORT 12435

Modified: gnunet/src/util/test_server_mst_interrupt.c
===================================================================
--- gnunet/src/util/test_server_mst_interrupt.c 2013-09-30 19:07:10 UTC (rev 
29722)
+++ gnunet/src/util/test_server_mst_interrupt.c 2013-09-30 19:24:12 UTC (rev 
29723)
@@ -22,12 +22,8 @@
  * @brief test for interrupt message processing in server_mst.c
  */
 #include "platform.h"
-#include "gnunet_common.h"
 #include "gnunet_protocols.h"
-#include "gnunet_client_lib.h"
-#include "gnunet_scheduler_lib.h"
-#include "gnunet_server_lib.h"
-#include "gnunet_time_lib.h"
+#include "gnunet_util_lib.h"
 
 static struct GNUNET_SERVER_MessageStreamTokenizer * mst;
 

Modified: gnunet/src/util/test_server_with_client.c
===================================================================
--- gnunet/src/util/test_server_with_client.c   2013-09-30 19:07:10 UTC (rev 
29722)
+++ gnunet/src/util/test_server_with_client.c   2013-09-30 19:24:12 UTC (rev 
29723)
@@ -24,11 +24,7 @@
  *       client_get_address and receive_done (resume processing)
  */
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_scheduler_lib.h"
-#include "gnunet_client_lib.h"
-#include "gnunet_server_lib.h"
-#include "gnunet_time_lib.h"
+#include "gnunet_util_lib.h"
 
 #define PORT 22335
 

Modified: gnunet/src/util/test_server_with_client_unix.c
===================================================================
--- gnunet/src/util/test_server_with_client_unix.c      2013-09-30 19:07:10 UTC 
(rev 29722)
+++ gnunet/src/util/test_server_with_client_unix.c      2013-09-30 19:24:12 UTC 
(rev 29723)
@@ -24,11 +24,7 @@
  *       client_get_address and receive_done (resume processing)
  */
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_scheduler_lib.h"
-#include "gnunet_client_lib.h"
-#include "gnunet_server_lib.h"
-#include "gnunet_time_lib.h"
+#include "gnunet_util_lib.h"
 
 #define MY_TYPE 128
 

Modified: gnunet/src/util/test_service.c
===================================================================
--- gnunet/src/util/test_service.c      2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/test_service.c      2013-09-30 19:24:12 UTC (rev 29723)
@@ -23,13 +23,7 @@
  * @author Christian Grothoff
  */
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_client_lib.h"
-#include "gnunet_getopt_lib.h"
-#include "gnunet_program_lib.h"
-#include "gnunet_service_lib.h"
-#include "gnunet_scheduler_lib.h"
-#include "gnunet_time_lib.h"
+#include "gnunet_util_lib.h"
 
 
 #define PORT 12435

Modified: gnunet/src/util/test_strings.c
===================================================================
--- gnunet/src/util/test_strings.c      2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/test_strings.c      2013-09-30 19:24:12 UTC (rev 29723)
@@ -22,8 +22,7 @@
  * @brief testcase for strings.c
  */
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_strings_lib.h"
+#include "gnunet_util_lib.h"
 
 
 #define WANT(a,b) if (0 != strcmp(a,b)) { fprintf(stderr, "Got `%s', wanted 
`%s'\n", b, a); GNUNET_free(b); GNUNET_break(0); return 1;} else { GNUNET_free 
(b); }

Modified: gnunet/src/util/test_strings_to_data.c
===================================================================
--- gnunet/src/util/test_strings_to_data.c      2013-09-30 19:07:10 UTC (rev 
29722)
+++ gnunet/src/util/test_strings_to_data.c      2013-09-30 19:24:12 UTC (rev 
29723)
@@ -22,9 +22,7 @@
  * @brief testcase for strings.c
  */
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_crypto_lib.h"
-#include "gnunet_strings_lib.h"
+#include "gnunet_util_lib.h"
 
 
 int

Modified: gnunet/src/util/time.c
===================================================================
--- gnunet/src/util/time.c      2013-09-30 19:07:10 UTC (rev 29722)
+++ gnunet/src/util/time.c      2013-09-30 19:24:12 UTC (rev 29723)
@@ -24,7 +24,7 @@
  * @brief functions for handling time and time arithmetic
  */
 #include "platform.h"
-#include "gnunet_time_lib.h"
+#include "gnunet_util_lib.h"
 
 #define LOG(kind,...) GNUNET_log_from (kind, "util", __VA_ARGS__)
 




reply via email to

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