diff --git a/plugins/out_kinesis_streams/kinesis_api.c b/plugins/out_kinesis_streams/kinesis_api.c index 9aaacc2accf..e05149a4a24 100644 --- a/plugins/out_kinesis_streams/kinesis_api.c +++ b/plugins/out_kinesis_streams/kinesis_api.c @@ -34,9 +34,9 @@ #include #include #include +#include #include -#include #include #include #include @@ -341,7 +341,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_base64_encode((unsigned char *) buf->event_buf, size, &b64_len, (unsigned char *) tmp_buf_ptr, written); if (ret != 0) { flb_errno();