From ebdcecf72153782425e435058915c61842987073 Mon Sep 17 00:00:00 2001 From: Leonardo Alminana Date: Wed, 10 Aug 2022 19:57:40 +0200 Subject: [PATCH] out_bigquery: renamed flb_digest to flb_hash Signed-off-by: Leonardo Alminana --- plugins/out_bigquery/bigquery.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/out_bigquery/bigquery.c b/plugins/out_bigquery/bigquery.c index bc9a0c7608e..56363b8ca11 100644 --- a/plugins/out_bigquery/bigquery.c +++ b/plugins/out_bigquery/bigquery.c @@ -24,7 +24,7 @@ #include #include #include -#include +#include #include #include #include @@ -131,9 +131,9 @@ static int bigquery_jwt_encode(struct flb_bigquery *ctx, out = flb_sds_cat(out, buf, olen); /* do sha256() of base64(header).base64(payload) */ - ret = flb_digest_simple(FLB_DIGEST_SHA256, - (unsigned char *) out, flb_sds_len(out), - sha256_buf, sizeof(sha256_buf)); + ret = flb_hash_simple(FLB_HASH_SHA256, + (unsigned char *) out, flb_sds_len(out), + sha256_buf, sizeof(sha256_buf)); if (ret != FLB_CRYPTO_SUCCESS) { flb_plg_error(ctx->ins, "error hashing token"); @@ -147,7 +147,7 @@ static int bigquery_jwt_encode(struct flb_bigquery *ctx, ret = flb_crypto_sign_simple(FLB_CRYPTO_PRIVATE_KEY, FLB_CRYPTO_PADDING_PKCS1, - FLB_DIGEST_SHA256, + FLB_HASH_SHA256, (unsigned char *) secret, len, sha256_buf, sizeof(sha256_buf), sig, &sig_len);