aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_strings_lib.h
diff options
context:
space:
mode:
authort3sserakt <t3ss@posteo.de>2020-08-06 16:25:51 +0200
committert3sserakt <t3ss@posteo.de>2020-08-06 16:25:51 +0200
commit38193fe48a572e475b4f84717ff5b3edbcaf2d2a (patch)
treed6deeb56d81f75ab411d88a03b865f7da7eaaed4 /src/include/gnunet_strings_lib.h
parent33954ae13d4d26cefa45ac86f5e2184b6abd724f (diff)
parent6ab14a20690a499ad32e3f2ad448d64d4e6b65fc (diff)
downloadgnunet-38193fe48a572e475b4f84717ff5b3edbcaf2d2a.tar.gz
gnunet-38193fe48a572e475b4f84717ff5b3edbcaf2d2a.zip
Merge branch 'master' of ssh://gnunet.org/gnunet
Diffstat (limited to 'src/include/gnunet_strings_lib.h')
-rw-r--r--src/include/gnunet_strings_lib.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/include/gnunet_strings_lib.h b/src/include/gnunet_strings_lib.h
index 663b44194..8d829d42e 100644
--- a/src/include/gnunet_strings_lib.h
+++ b/src/include/gnunet_strings_lib.h
@@ -350,6 +350,18 @@ GNUNET_STRINGS_base64_encode (const void *in,
350 350
351 351
352/** 352/**
353 * url/percent encode (RFC3986).
354 *
355 * @param data the data to decode
356 * @param len the length of the input
357 * @param output where to write the output (*output should be NULL,
358 * is allocated)
359 * @return the size of the output
360 */
361size_t
362GNUNET_STRINGS_urlencode (const char *data, size_t len, char **out);
363
364/**
353 * Encode into Base64url. RFC7515 365 * Encode into Base64url. RFC7515
354 * 366 *
355 * @param in the data to encode 367 * @param in the data to encode
@@ -389,6 +401,18 @@ GNUNET_STRINGS_base64_decode (const char *data,
389size_t 401size_t
390GNUNET_STRINGS_base64url_decode (const char *data, size_t len, void **out); 402GNUNET_STRINGS_base64url_decode (const char *data, size_t len, void **out);
391 403
404/**
405 * url/percent encode (RFC3986).
406 *
407 * @param data the data to encode
408 * @param len the length of the input
409 * @param output where to write the output (*output should be NULL,
410 * is allocated)
411 * @return the size of the output
412 */
413size_t
414GNUNET_STRINGS_urldecode (const char *data, size_t len, char **out);
415
392 416
393/** 417/**
394 * Convert a peer path to a human-readable string. 418 * Convert a peer path to a human-readable string.