From 06d80d1be82108fb27254c2d662e37231894de55 Mon Sep 17 00:00:00 2001 From: Matthew Fala Date: Fri, 10 Dec 2021 00:45:43 +0000 Subject: [PATCH] out_kinesis_firehose: migrate to performant base64 implementation Signed-off-by: Matthew Fala --- plugins/out_kinesis_firehose/firehose_api.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/out_kinesis_firehose/firehose_api.c b/plugins/out_kinesis_firehose/firehose_api.c index 2e5cd751e43..821ccab1af5 100644 --- a/plugins/out_kinesis_firehose/firehose_api.c +++ b/plugins/out_kinesis_firehose/firehose_api.c @@ -36,8 +36,9 @@ #include #include +#include + #include -#include #include #include #include @@ -276,7 +277,7 @@ static int process_event(struct flb_firehose *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();