From 3bad9c6390b77087b34c21479403972d91f1d6d0 Mon Sep 17 00:00:00 2001 From: Matthew Fala Date: Fri, 10 Dec 2021 00:44:29 +0000 Subject: [PATCH] out_s3: migrate to performant base64 implementation Signed-off-by: Matthew Fala --- 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 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;