diff --git a/plugins/out_s3/s3.c b/plugins/out_s3/s3.c index c2edffc1aa8..b90572785c7 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 @@ -1436,7 +1437,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_aws_base64_encode((unsigned char*) md5_str, md5_str_size, &olen, md5_bin, sizeof(md5_bin)); if (ret != 0) { return ret;