From 0434352e1ccba22ff4f45534a43092930a267792 Mon Sep 17 00:00:00 2001 From: Matthew Fala Date: Fri, 10 Dec 2021 00:48:58 +0000 Subject: [PATCH] out_kinesis_streams: migrate to performant base64 implementation Signed-off-by: Matthew Fala --- plugins/out_kinesis_streams/kinesis_api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/out_kinesis_streams/kinesis_api.c b/plugins/out_kinesis_streams/kinesis_api.c index 00cf3f729a7..d3ad7d69108 100644 --- a/plugins/out_kinesis_streams/kinesis_api.c +++ b/plugins/out_kinesis_streams/kinesis_api.c @@ -35,9 +35,9 @@ #include #include #include +#include #include -#include #include #include #include @@ -342,7 +342,7 @@ static int process_event(struct flb_kinesis *ctx, struct flush *buf, } tmp_buf_ptr = buf->tmp_buf + buf->tmp_buf_offset; - ret = mbedtls_base64_encode((unsigned char *) buf->event_buf, size, &b64_len, + ret = flb_aws_base64_encode((unsigned char *) buf->event_buf, size, &b64_len, (unsigned char *) tmp_buf_ptr, written); if (ret != 0) { flb_errno();