diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-06-30 11:57:07 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-06-30 11:57:28 +0200 |
commit | bc458ee7949e01e0b5a1f7f15773c02be94cb8fa (patch) | |
tree | 3491aafa2f3dc5265145b5d27a2b468b140c50ee /src/include/gnunet_strings_lib.h | |
parent | f9b0e00a193e735db74f0abe907caf97c7da054b (diff) | |
download | gnunet-bc458ee7949e01e0b5a1f7f15773c02be94cb8fa.tar.gz gnunet-bc458ee7949e01e0b5a1f7f15773c02be94cb8fa.zip |
simplify memory allocation in plugin_namestore_flat, use cleaner signatures for base64 encoding/decoding functions
Diffstat (limited to 'src/include/gnunet_strings_lib.h')
-rw-r--r-- | src/include/gnunet_strings_lib.h | 8 |
1 files changed, 5 insertions, 3 deletions
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 @@ | |||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Affero General Public License for more details. | 13 | Affero General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Affero General Public License | 15 | You should have received a copy of the GNU Affero General Public License |
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | */ | 17 | */ |
@@ -339,7 +339,9 @@ GNUNET_STRINGS_string_to_data (const char *enc, | |||
339 | * @return the size of the output | 339 | * @return the size of the output |
340 | */ | 340 | */ |
341 | size_t | 341 | size_t |
342 | GNUNET_STRINGS_base64_encode (const char *data, size_t len, char **output); | 342 | GNUNET_STRINGS_base64_encode (const void *in, |
343 | size_t len, | ||
344 | char **output); | ||
343 | 345 | ||
344 | 346 | ||
345 | /** | 347 | /** |
@@ -354,7 +356,7 @@ GNUNET_STRINGS_base64_encode (const char *data, size_t len, char **output); | |||
354 | size_t | 356 | size_t |
355 | GNUNET_STRINGS_base64_decode (const char *data, | 357 | GNUNET_STRINGS_base64_decode (const char *data, |
356 | size_t len, | 358 | size_t len, |
357 | char **output); | 359 | void **output); |
358 | 360 | ||
359 | 361 | ||
360 | /** | 362 | /** |