From bc458ee7949e01e0b5a1f7f15773c02be94cb8fa Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 30 Jun 2018 11:57:07 +0200 Subject: simplify memory allocation in plugin_namestore_flat, use cleaner signatures for base64 encoding/decoding functions --- src/include/gnunet_strings_lib.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/include/gnunet_strings_lib.h') diff --git a/src/include/gnunet_strings_lib.h b/src/include/gnunet_strings_lib.h index 1fdab93b2..c1d76ef71 100644 --- a/src/include/gnunet_strings_lib.h +++ b/src/include/gnunet_strings_lib.h @@ -11,7 +11,7 @@ WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -339,7 +339,9 @@ GNUNET_STRINGS_string_to_data (const char *enc, * @return the size of the output */ size_t -GNUNET_STRINGS_base64_encode (const char *data, size_t len, char **output); +GNUNET_STRINGS_base64_encode (const void *in, + size_t len, + char **output); /** @@ -354,7 +356,7 @@ GNUNET_STRINGS_base64_encode (const char *data, size_t len, char **output); size_t GNUNET_STRINGS_base64_decode (const char *data, size_t len, - char **output); + void **output); /** -- cgit v1.2.3