diff --git a/plugins/out_s3/s3.c b/plugins/out_s3/s3.c index c9910175113..d099c30eb86 100644 --- a/plugins/out_s3/s3.c +++ b/plugins/out_s3/s3.c @@ -28,9 +28,10 @@ #include #include #include +#include #include #include -#include + #include #include @@ -1441,7 +1442,7 @@ int get_md5_base64(char *buf, size_t buf_size, char *md5_str, size_t md5_str_siz return ret; } - ret = mbedtls_base64_encode((unsigned char*) md5_str, md5_str_size, &olen, md5_bin, + ret = flb_base64_encode((unsigned char*) md5_str, md5_str_size, &olen, md5_bin, sizeof(md5_bin)); if (ret != 0) { return ret;