From d790893b9d830b8a270206d7726048c6356db659 Mon Sep 17 00:00:00 2001 From: Jesse Rittner Date: Sat, 17 Jul 2021 18:39:15 -0400 Subject: [PATCH] out_s3: fix compiler warnings Signed-off-by: Jesse Rittner --- plugins/out_s3/s3.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/out_s3/s3.c b/plugins/out_s3/s3.c index aa81b3b3415..3a6304c4d7e 100644 --- a/plugins/out_s3/s3.c +++ b/plugins/out_s3/s3.c @@ -1165,12 +1165,13 @@ int get_md5_base64(char *buf, size_t buf_size, char *md5_str, size_t md5_str_siz size_t olen; int ret; - ret = mbedtls_md5_ret(buf, buf_size, md5_bin); + ret = mbedtls_md5_ret((unsigned char*) buf, buf_size, md5_bin); if (ret != 0) { return ret; } - ret = mbedtls_base64_encode(md5_str, md5_str_size, &olen, md5_bin, sizeof(md5_bin)); + ret = mbedtls_base64_encode((unsigned char*) md5_str, md5_str_size, &olen, md5_bin, + sizeof(md5_bin)); if (ret != 0) { return ret; }