From 173bfbf7886608a4a7abbfac6a42ac4bf4a3432d Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Sun, 20 Sep 2020 16:14:20 +0100 Subject: New upstream version 1.5.0 --- tools/base64.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tools/base64.c') diff --git a/tools/base64.c b/tools/base64.c index 9f31def..e131198 100644 --- a/tools/base64.c +++ b/tools/base64.c @@ -7,7 +7,6 @@ #include #include -#include #include #include #include @@ -62,7 +61,7 @@ fail: } int -base64_decode(char *in, void **ptr, size_t *len) +base64_decode(const char *in, void **ptr, size_t *len) { BIO *bio_mem = NULL; BIO *bio_b64 = NULL; @@ -78,7 +77,7 @@ base64_decode(char *in, void **ptr, size_t *len) if ((bio_b64 = BIO_new(BIO_f_base64())) == NULL) goto fail; - if ((bio_mem = BIO_new_mem_buf((void *)in, -1)) == NULL) + if ((bio_mem = BIO_new_mem_buf((const void *)in, -1)) == NULL) goto fail; BIO_set_flags(bio_b64, BIO_FLAGS_BASE64_NO_NL); -- cgit v1.2.3