From 9f771b3b4510b67bca27c9f034b7c9b01145c595 Mon Sep 17 00:00:00 2001 From: Matthew Fala Date: Tue, 14 Dec 2021 11:15:53 -0800 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 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;