diff --git a/plugins/out_forward/forward.c b/plugins/out_forward/forward.c index 58bbcc45e64..652d1f34954 100644 --- a/plugins/out_forward/forward.c +++ b/plugins/out_forward/forward.c @@ -23,7 +23,7 @@ #include #include #include -#include +#include #include #include #include @@ -184,12 +184,12 @@ static int secure_forward_hash_shared_key(struct flb_forward_config *fc, data_entries[3] = (unsigned char *) fc->shared_key; length_entries[3] = strlen(fc->shared_key); - result = flb_digest_simple_batch(FLB_DIGEST_SHA512, - 4, - data_entries, - length_entries, - hash, - sizeof(hash)); + result = flb_hash_simple_batch(FLB_HASH_SHA512, + 4, + data_entries, + length_entries, + hash, + sizeof(hash)); if (result != FLB_CRYPTO_SUCCESS) { return -1; @@ -222,12 +222,12 @@ static int secure_forward_hash_password(struct flb_forward_config *fc, data_entries[2] = (unsigned char *) fc->password; length_entries[2] = strlen(fc->password); - result = flb_digest_simple_batch(FLB_DIGEST_SHA512, - 3, - data_entries, - length_entries, - hash, - sizeof(hash)); + result = flb_hash_simple_batch(FLB_HASH_SHA512, + 3, + data_entries, + length_entries, + hash, + sizeof(hash)); if (result != FLB_CRYPTO_SUCCESS) { return -1; diff --git a/plugins/out_forward/forward_format.c b/plugins/out_forward/forward_format.c index 4f300e6390b..f208d3a4419 100644 --- a/plugins/out_forward/forward_format.c +++ b/plugins/out_forward/forward_format.c @@ -19,7 +19,7 @@ #include #include -#include +#include #include #include #include "forward.h" @@ -94,9 +94,9 @@ static int append_options(struct flb_forward *ctx, * for ack we calculate sha512 of context, take 16 bytes, * make 32 byte hex string of it */ - result = flb_digest_simple(FLB_DIGEST_SHA512, - data, bytes, - checksum, sizeof(checksum)); + result = flb_hash_simple(FLB_HASH_SHA512, + data, bytes, + checksum, sizeof(checksum)); if (result != FLB_CRYPTO_SUCCESS) { return -1;