-Subproject commit d81bbfabc2538932f631d3946bd6a9b95182b4f2
+Subproject commit 1915a74bbb4cd2ae9bc541a382dfebc37064a2fd
}
-/* end of gnunet-service-cadet-new_channel.c */
+/* end of gnunet-service-cadet_channel.c */
{
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;
}
}
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;
* @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,
#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"