aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_strings_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-01-28 19:32:56 +0000
committerChristian Grothoff <christian@grothoff.org>2015-01-28 19:32:56 +0000
commitf225e4d9567118fdb0209a4bc8dfdfe76cb85ae0 (patch)
treee1a2d93d258189edd65b5a9d2acda1527197b52a /src/include/gnunet_strings_lib.h
parent57c2b8f499605815aad123549db8edb8566fa370 (diff)
downloadgnunet-f225e4d9567118fdb0209a4bc8dfdfe76cb85ae0.tar.gz
gnunet-f225e4d9567118fdb0209a4bc8dfdfe76cb85ae0.zip
add GNUNET_STRINGS_data_to_string_alloc from TALER
Diffstat (limited to 'src/include/gnunet_strings_lib.h')
-rw-r--r--src/include/gnunet_strings_lib.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/include/gnunet_strings_lib.h b/src/include/gnunet_strings_lib.h
index c7d16c947..387f3a135 100644
--- a/src/include/gnunet_strings_lib.h
+++ b/src/include/gnunet_strings_lib.h
@@ -297,6 +297,21 @@ GNUNET_STRINGS_data_to_string (const void *data,
297 297
298 298
299/** 299/**
300 * Return the base32crockford encoding of the given buffer.
301 *
302 * The returned string will be freshly allocated, and must be free'd
303 * with #GNUNET_free().
304 *
305 * @param buffer with data
306 * @param size size of the buffer
307 * @return freshly allocated, null-terminated string
308 */
309char *
310GNUNET_STRINGS_data_to_string_alloc (const void *buf,
311 size_t size);
312
313
314/**
300 * Convert Base32hex encoding back to data. 315 * Convert Base32hex encoding back to data.
301 * @a out_size must match exactly the size of the data before it was encoded. 316 * @a out_size must match exactly the size of the data before it was encoded.
302 * 317 *