Skip to content

Commit

Permalink
out_s3: 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 Jan 27, 2022
1 parent a6ca20d commit 3bad9c6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/out_s3/s3.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@
#include <fluent-bit/flb_signv4.h>
#include <fluent-bit/flb_scheduler.h>
#include <fluent-bit/flb_gzip.h>
#include <fluent-bit/aws/flb_aws_base64.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <mbedtls/base64.h>

#include <mbedtls/md5.h>
#include <msgpack.h>

Expand Down Expand Up @@ -1436,7 +1437,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_aws_base64_encode((unsigned char*) md5_str, md5_str_size, &olen, md5_bin,
sizeof(md5_bin));
if (ret != 0) {
return ret;
Expand Down

0 comments on commit 3bad9c6

Please sign in to comment.