include buffer in main util header
authorChristian Grothoff <christian@grothoff.org>
Thu, 16 Jan 2020 23:25:55 +0000 (00:25 +0100)
committerChristian Grothoff <christian@grothoff.org>
Thu, 16 Jan 2020 23:26:05 +0000 (00:26 +0100)
contrib/build-common
src/cadet/gnunet-service-cadet_channel.c
src/cadet/gnunet-service-cadet_tunnels.c
src/curl/curl.c
src/gnsrecord/gnsrecord_crypto.c
src/include/gnunet_util_lib.h

index d81bbfabc2538932f631d3946bd6a9b95182b4f2..1915a74bbb4cd2ae9bc541a382dfebc37064a2fd 160000 (submodule)
@@ -1 +1 @@
-Subproject commit d81bbfabc2538932f631d3946bd6a9b95182b4f2
+Subproject commit 1915a74bbb4cd2ae9bc541a382dfebc37064a2fd
index a2c710cbcda37dcb328b55ee1e809a5a7041b25a..5c8103c5e76c9d4d5d893e90869f9f2823ce8017 100644 (file)
@@ -2026,4 +2026,4 @@ GCCH_debug (struct CadetChannel *ch, enum GNUNET_ErrorType level)
 }
 
 
-/* end of gnunet-service-cadet-new_channel.c */
+/* end of gnunet-service-cadet_channel.c */
index a1098d7578b64f108d4f09b9ca56ee414836ac27..ae201ed2d213cc8fcc0254660f2b35d50f972b3f 100644 (file)
@@ -544,29 +544,22 @@ estate2s (enum CadetTunnelEState es)
   {
   case CADET_TUNNEL_KEY_UNINITIALIZED:
     return "CADET_TUNNEL_KEY_UNINITIALIZED";
-
   case CADET_TUNNEL_KEY_AX_RECV:
     return "CADET_TUNNEL_KEY_AX_RECV";
-
   case CADET_TUNNEL_KEY_AX_SENT:
     return "CADET_TUNNEL_KEY_AX_SENT";
-
   case CADET_TUNNEL_KEY_AX_SENT_AND_RECV:
     return "CADET_TUNNEL_KEY_AX_SENT_AND_RECV";
-
   case CADET_TUNNEL_KEY_AX_AUTH_SENT:
     return "CADET_TUNNEL_KEY_AX_AUTH_SENT";
-
   case CADET_TUNNEL_KEY_OK:
     return "CADET_TUNNEL_KEY_OK";
-
-  default:
-    GNUNET_snprintf (buf,
-                     sizeof(buf),
-                     "%u (UNKNOWN STATE)",
-                     es);
-    return buf;
   }
+  GNUNET_snprintf (buf,
+                   sizeof(buf),
+                   "%u (UNKNOWN STATE)",
+                   es);
+  return buf;
 }
 
 
index 82eb28ed9a0ce536edf265930c59b5163e18f4c5..01c7c5fca1bb6b64897b99a7b4d17529116ec55c 100644 (file)
@@ -556,7 +556,9 @@ GNUNET_CURL_download_get_result_ (struct GNUNET_CURL_DownloadBuffer *db,
     }
     if (0 != db->buf_size)
       GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
-                  "Did NOT detect response as JSON\n");
+                  "Did NOT detect response `%.*s' as JSON\n",
+                  (int) db->buf_size,
+                  (const char *) db->buf);
     return NULL;
   }
   json = NULL;
index b276880196f1d8c080dac3ad7c9803ee0c6cd4e1..ea8baa77d86bf96d4b6576e42f0fa21fd8d98473 100644 (file)
@@ -80,7 +80,7 @@ derive_block_aes_key (struct GNUNET_CRYPTO_SymmetricInitializationVector *iv,
  * @param rd_count number of records
  * @return NULL on error (block too large)
  */
-struct GNUNET_GNSRECORD_Block *
+static struct GNUNET_GNSRECORD_Block *
 block_create (const struct GNUNET_CRYPTO_EcdsaPrivateKey *key,
               const struct GNUNET_CRYPTO_EcdsaPublicKey *pkey,
               struct GNUNET_TIME_Absolute expire,
index 24ad4e4e5cff80ff96fa9aa8941c80a0b2b35d3c..5e790550f34358764458bfd077e9235719b95bf9 100644 (file)
@@ -64,6 +64,7 @@ extern "C"
 #include "gnunet_crypto_lib.h"
 #include "gnunet_bandwidth_lib.h"
 #include "gnunet_bio_lib.h"
+#include "gnunet_buffer_lib.h"
 #include "gnunet_client_lib.h"
 #include "gnunet_container_lib.h"
 #include "gnunet_getopt_lib.h"