Skip to content

Commit

Permalink
out_s3: fix compiler warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Jesse Rittner <[email protected]>
  • Loading branch information
rittneje authored and PettitWesley committed Jul 20, 2021
1 parent 70ddace commit d790893
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/out_s3/s3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d790893

Please sign in to comment.