summaryrefslogtreecommitdiff
path: root/src/util/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/util.c')
-rw-r--r--src/util/util.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/util/util.c b/src/util/util.c
index de085d088..b09f4dbdd 100644
--- a/src/util/util.c
+++ b/src/util/util.c
@@ -28,36 +28,6 @@
#include <gnunet/gnunet_util_lib.h>
#include <gcrypt.h>
-/**
- * Return the base32crockford encoding of the given buffer.
- *
- * The returned string will be freshly allocated, and must be free'd
- * with GNUNET_free().
- *
- * @param buffer with data
- * @param size size of the buffer
- * @return freshly allocated, null-terminated string
- */
-char *
-TALER_data_to_string_alloc (const void *buf, size_t size)
-{
- char *str_buf;
- size_t len = size * 8;
- char *end;
-
- if (len % 5 > 0)
- len += 5 - len % 5;
- len /= 5;
- str_buf = GNUNET_malloc (len + 1);
- end = GNUNET_STRINGS_data_to_string (buf, size, str_buf, len);
- if (NULL == end)
- {
- GNUNET_free (str_buf);
- return NULL;
- }
- *end = '\0';
- return str_buf;
-}
/**