Skip to content

Commit

Permalink
out_kinesis_streams: migrate to performant base64 implementation
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Fala <[email protected]>
  • Loading branch information
matthewfala committed Dec 10, 2021
1 parent 987eea8 commit 0434352
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/out_kinesis_streams/kinesis_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
#include <fluent-bit/flb_mem.h>
#include <fluent-bit/flb_http_client.h>
#include <fluent-bit/flb_utils.h>
#include <fluent-bit/aws/flb_aws_base64.h>

#include <monkey/mk_core.h>
#include <mbedtls/base64.h>
#include <msgpack.h>
#include <string.h>
#include <stdio.h>
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 0434352

Please sign in to comment.