diff --git a/plugins/out_s3/s3.c b/plugins/out_s3/s3.c index ed2a462d370..39fd846c42c 100644 --- a/plugins/out_s3/s3.c +++ b/plugins/out_s3/s3.c @@ -25,7 +25,7 @@ #include #include #include -#include +#include #include #include #include @@ -1468,9 +1468,9 @@ int get_md5_base64(char *buf, size_t buf_size, char *md5_str, size_t md5_str_siz size_t olen; int ret; - ret = flb_digest_simple(FLB_DIGEST_MD5, - (unsigned char *) buf, buf_size, - md5_bin, sizeof(md5_bin)); + ret = flb_hash_simple(FLB_HASH_MD5, + (unsigned char *) buf, buf_size, + md5_bin, sizeof(md5_bin)); if (ret != FLB_CRYPTO_SUCCESS) { return -1;